Click to See Complete Forum and Search --> : [RESOLVED] Help for Win32 App
Suresh.hc
February 23rd, 2009, 05:14 AM
Hello Everyone,
Can anyone please tell me how to create a Help for Win32 Application ?
Is there any tutorials ? please give the links.
Thanking you,
Suresh HC.
Marc G
February 24th, 2009, 10:42 AM
Start by reading the following article:
Starting Out with HtmlHelp (http://www.codeguru.com/cpp/w-p/help/html/article.php/c6503)
The example at the end is for visual basic, but it pretty straightforward to convert to C++.
Suresh.hc
February 24th, 2009, 11:51 PM
Thanks Marc
Suresh.hc
February 25th, 2009, 03:40 AM
Start by reading the following article:
Starting Out with HtmlHelp (http://www.codeguru.com/cpp/w-p/help/html/article.php/c6503)
The example at the end is for visual basic, but it pretty straightforward to convert to C++.
Hello Everyone,
I read the article and created a Help.chm file successfully.
Now i am calling the chm file in WM_HELP method.
BOOL CALLBACK MainProc(HWND hwnd, UINT Message, WPARAM wParam, LPARAM lParam)
{
switch(Message)
{
case WM_INITDIALOG:
{
}
break;
case WM_HELP:
{
HWND hwnd = HtmlHelp(
GetDesktopWindow(),"c:\\Help.chm", NULL, NULL) ;
}
break;
....
I am getting this errors
error C2065: 'HtmlHelp' : undeclared identifier
error C2440: 'initializing' : cannot convert from 'int' to 'struct HWND__ *'
can anyone please tell me what should i do here ....do i need to include any header file ?
Thanking you ..
Suresh
Suresh.hc
February 26th, 2009, 12:22 AM
Hello Everyone,
Got the Solution ....
i just added
::ShellExecute(GetDesktopWindow(),"open","help.chm",NULL,NULL,SW_SHOW);
Its working fine ...
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.