loading .chm help file with vc++
-
hi, i made a .chm help file.. i've create a command for it in the menu already.. i was wondering how do i load it? do i use shellexecute or is there another command in vc++ 7 that's create for loading .chm file? also, will this .chm file work in win95/98/nt/2000? thanx in advance.
-
hi, i made a .chm help file.. i've create a command for it in the menu already.. i was wondering how do i load it? do i use shellexecute or is there another command in vc++ 7 that's create for loading .chm file? also, will this .chm file work in win95/98/nt/2000? thanx in advance.
The fucntion
HWND HtmlHelp(
HWND hwndCaller,
LPCSTR pszFile,
UINT uCommand,
DWORD dwData) ;can be used to display .chm files. It's declared in htmlhlp.h. I think it should work on all OS you mentioned (even if I don't really know if you need a IE > 4.0 or anything further)
-
The fucntion
HWND HtmlHelp(
HWND hwndCaller,
LPCSTR pszFile,
UINT uCommand,
DWORD dwData) ;can be used to display .chm files. It's declared in htmlhlp.h. I think it should work on all OS you mentioned (even if I don't really know if you need a IE > 4.0 or anything further)
hi, i delcared htmlhelp.h and attempt to run HtmlHelp off one of the event handler, but i kept on getting error message saying that HtmlHelpA doesn't take 4 argument.. i've checked out the documentation on HtmlHelp, but it's not very helpful.. not much information given.. do you know where that i can find a example on hooking up .chm using HtmlHelp function? thx.
-
hi, i delcared htmlhelp.h and attempt to run HtmlHelp off one of the event handler, but i kept on getting error message saying that HtmlHelpA doesn't take 4 argument.. i've checked out the documentation on HtmlHelp, but it's not very helpful.. not much information given.. do you know where that i can find a example on hooking up .chm using HtmlHelp function? thx.
The problem is that both CWinApp and CWnd delcare a HtmlHelp function, too. And this function takes only 2 parameters. So I think you've to call the function as a global one, thus calling ::HtmlHelp. If you need more information you should have a look at MSDN. There're many examples dealing with this topic.