How to use help file
-
To open a help (chm) file i use below function ShellExecute(this->m_hWnd,_T("open"),_T("HelpSample.chm"),NULL,NULL,SW_SHOW); and it works. But when i want to open any particular page of chm file using below function it does not work ShellExecute(this->m_hWnd,_T("open"),_T("HelpSample.chm::/page1.html"),NULL,NULL,SW_SHOW); Please suggest how to open any page
-
To open a help (chm) file i use below function ShellExecute(this->m_hWnd,_T("open"),_T("HelpSample.chm"),NULL,NULL,SW_SHOW); and it works. But when i want to open any particular page of chm file using below function it does not work ShellExecute(this->m_hWnd,_T("open"),_T("HelpSample.chm::/page1.html"),NULL,NULL,SW_SHOW); Please suggest how to open any page
MKC002 wrote:
ShellExecute(this->m_hWnd,_T("open"),_T("HelpSample.chm::/page1.html"),NULL,NULL,SW_SHOW);
Have you tried:
ShellExecute(this->m_hWnd, _T("open"), "hh.exe", _T("HelpSample.chm::/page1.html"), NULL, SW_SHOW);
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Some people are making such thorough preparation for rainy days that they aren't enjoying today's sunshine." - William Feather
-
To open a help (chm) file i use below function ShellExecute(this->m_hWnd,_T("open"),_T("HelpSample.chm"),NULL,NULL,SW_SHOW); and it works. But when i want to open any particular page of chm file using below function it does not work ShellExecute(this->m_hWnd,_T("open"),_T("HelpSample.chm::/page1.html"),NULL,NULL,SW_SHOW); Please suggest how to open any page
I'm not sure if ShellExecute() "open" will do that for you like that. You could try something like
CreateProcess("hh.exe", " drive:\\path\\HelpSample.chm::/page1.html", ...);
*edit* or try David's method above :)
Mark Salsbery Microsoft MVP - Visual C++ :java:
-
To open a help (chm) file i use below function ShellExecute(this->m_hWnd,_T("open"),_T("HelpSample.chm"),NULL,NULL,SW_SHOW); and it works. But when i want to open any particular page of chm file using below function it does not work ShellExecute(this->m_hWnd,_T("open"),_T("HelpSample.chm::/page1.html"),NULL,NULL,SW_SHOW); Please suggest how to open any page
If this is a help (chm) file you have created yourself, you can open any page by using the topic ID stored for that page, using function HtmlHelp().
Best wishes, Hans
-
To open a help (chm) file i use below function ShellExecute(this->m_hWnd,_T("open"),_T("HelpSample.chm"),NULL,NULL,SW_SHOW); and it works. But when i want to open any particular page of chm file using below function it does not work ShellExecute(this->m_hWnd,_T("open"),_T("HelpSample.chm::/page1.html"),NULL,NULL,SW_SHOW); Please suggest how to open any page
This will work, ::HtmlHelp(NULL, _T("HelpSample.chm::/html/page1.html"), HH_DISPLAY_TOPIC, 0);
-
MKC002 wrote:
ShellExecute(this->m_hWnd,_T("open"),_T("HelpSample.chm::/page1.html"),NULL,NULL,SW_SHOW);
Have you tried:
ShellExecute(this->m_hWnd, _T("open"), "hh.exe", _T("HelpSample.chm::/page1.html"), NULL, SW_SHOW);
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Some people are making such thorough preparation for rainy days that they aren't enjoying today's sunshine." - William Feather
Shouldn't be also
_T("hh.exe")
?If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles]