regarding running .chm file in vc++
i have designed a help file in .chm format and i wish to attach to this to one of the menu options......can someone please tell me how can i run this file through one of the menu buttons.....is it something like execute or ..........please help as soon as possible...
Re: regarding running .chm file in vc++
You can try ShellExecute.
Re: regarding running .chm file in vc++
can u please tell how to use it going through msdn and other sites for syntax was of not much to help.........the thing is i wish to open a file file1.hlp which is saved in the same directory where all other files of the project are saved.............thnx
Re: regarding running .chm file in vc++
Code:
ShellExecute (NULL, "open", "c:\\somedir\\somehelpfile.hlp", "", "", SW_SHOW);
Re: regarding running .chm file in vc++
isn't this will become computer dependent??
Re: regarding running .chm file in vc++
Quote:
Originally Posted by
pinnachio
isn't this will become computer dependent??
Dependent on what ?
Re: regarding running .chm file in vc++
also this code is not working.......i attached this code with the menu click event but thier seems to be no response!!
Re: regarding running .chm file in vc++
by dependent i wish to say that if the same project is copied on some other computer the path of the file would be different...............if not please explain??
Re: regarding running .chm file in vc++
Re: regarding running .chm file in vc++
Since your trying to use .chm files from within your program, the correct way to do this is by using HtmlHelp.
See this thread (especially starting with post 6) for more information.
Hope that helps.