Discussion:
Add/Display a (*.chm) help File in VC++ 6.0 MFC Application
(too old to reply)
Thisara
2006-10-04 15:34:01 UTC
Permalink
I wish to display a help file (*.chm) in a VC++ 6.0 MFC Application .
I've created the CHM file using a software and I just want to display the
chm file when the Help button is clicked.

It's better if u can give a sample code.

Your help is highly appreciated.


Thanks in Advance
William DePalo [MVP VC++]
2006-10-04 15:42:22 UTC
Permalink
Post by Thisara
I wish to display a help file (*.chm) in a VC++ 6.0 MFC Application .
I've created the CHM file using a software and I just want to display the
chm file when the Help button is clicked.
Check the docs for ShellExecute() using the file name and the "open verb"

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/Shell/reference/functions/shellexecute.asp

Regards,
Will
Alex Blekhman
2006-10-04 15:42:53 UTC
Permalink
Post by Thisara
I wish to display a help file (*.chm) in a VC++ 6.0 MFC Application .
I've created the CHM file using a software and I just want to display the
chm file when the Help button is clicked.
ShellExecute(hWnd, _T("open"), _T("C:\\MyDir\\MyFile.chm"),
NULL, NULL, SW_SHOWNORMAL);
k***@gmail.com
2016-03-29 08:54:38 UTC
Permalink
Post by Alex Blekhman
Post by Thisara
I wish to display a help file (*.chm) in a VC++ 6.0 MFC Application .
I've created the CHM file using a software and I just want to display the
chm file when the Help button is clicked.
ShellExecute(hWnd, _T("open"), _T("C:\\MyDir\\MyFile.chm"),
NULL, NULL, SW_SHOWNORMAL);
Thanks! It Works! :D

Igor Tandetnik
2006-10-05 21:59:58 UTC
Permalink
Post by Thisara
I wish to display a help file (*.chm) in a VC++ 6.0 MFC Application
. I've created the CHM file using a software and I just want to
display the chm file when the Help button is clicked.
See CWinApp::HtmlHelp
--
With best wishes,
Igor Tandetnik

With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925
Loading...