
235
USING ROBOHELP HTML 9
Context-sensitive Help
Last updated 12/14/2011
Program Help for Visual C++ applications
This information is for developers connecting context-sensitive Help topics to C++ applications.
1
Open the project in the C++ IDE.
2
Add RoboHelp_CSH.cpp and RoboHelp_CSH.h to the project.
3
Link the wininet.lib and hhctrl.lib libraries to the application. Look for the hhctrl.lib library in the CSH API
subfolder of the installation folder.
4
If you are using Microsoft Visual C++ with MFC, set the RoboHelp_CSH.cpp file so that it doesn’t use precompiled
headers.
Prevent RoboHelp_CSH.cpp from using precompiled headers
Visual Studio 6
1
Select Project > Settings.
2
Select Robohelp_Csh.Cpp.
3
On the C/C tab, change Category to Precompiled Headers.
4
Select Not Using Precompiled Headers.
5
Click OK.
Visual Studio .NET
1
Right-click Robohelp_Csh.Cpp. Select Properties.
2
In the C/C folder, select Precompiled Headers.
3
Select Not Using Precompiled Headers.
Function calls from Visual C++ applications
Note:
Connect context-sensitive WebHelp, WebHelp Pro, FlashHelp, FlashHelp Pro, or HTML Help topics to Visual C++
applications.
Note:
You can call the context-sensitive help from other languages too. Visual C++ is given as an example here.
RH_ShowHelp syntax
int RH_ShowHelp(HWND hParent, const char * a_pszHelpFile, unsigned int uCommand, DWORD dwData)