I have created a win32 program in masm32 and I have created a Help file for this program. How do I call this help file from inside my program?
What type of help file ? There are currently 3 help systems for Windows, .hlp (WinHelp), .CHM (HTML Help 1.x) and .Hx (HTML Help2). All have specific APIs to use them..
For CHM files look here:
http://msdn.microsoft.com/en-us/library/ms670168(VS.85).aspx
For Help2 files check out the GoAsm forum here:
http://www.masm32.com/board/index.php?topic=10912.0
If it is a standard help file that runs when you double click on it, the simple answer is just execute it using WinExec.
For *.hlp, use this:
invoke WinHelp, hWin, chr$("MyHelpFile.hlp"), HELP_PARTIALKEY, chr$("FindThisWord")
Before closing your program, close Help like this:
invoke WinHelp, 0, 0, HELP_QUIT, 0
invoke DestroyWindow, hWin ; destroy main window and all its children
...