News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Calling Help files from masm32

Started by Ron_Co, March 19, 2009, 05:33:54 AM

Previous topic - Next topic

Ron_Co

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?

donkey

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

"Ahhh, what an awful dream. Ones and zeroes everywhere...[shudder] and I thought I saw a two." -- Bender
"It was just a dream, Bender. There's no such thing as two". -- Fry
-- Futurama

Donkey's Stable

Jimg

If it is a standard help file that runs when you double click on it, the simple answer is just execute it using WinExec.

jj2007

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
...