Help File vc++
-
I have created a help file for the application i have developed. The help file was created using help workshop in visual studio. i used the following code to call the help file in my application ShellExecute(NULL, "open", "C:\\Documents and Settings\\Pradeep.DEEPA\\Desktop\\DesktopSearch\\hlp\\HELP.hlp", NULL, NULL, SW_SHOWNORMAL); the problem with this code is that if i install the application in some other drives or folders it wont work coz i have specified the path for the help file in the code itself. can anyone tell me how this can be changed so that help file works even if the application is installed in different folders or drive
-
I have created a help file for the application i have developed. The help file was created using help workshop in visual studio. i used the following code to call the help file in my application ShellExecute(NULL, "open", "C:\\Documents and Settings\\Pradeep.DEEPA\\Desktop\\DesktopSearch\\hlp\\HELP.hlp", NULL, NULL, SW_SHOWNORMAL); the problem with this code is that if i install the application in some other drives or folders it wont work coz i have specified the path for the help file in the code itself. can anyone tell me how this can be changed so that help file works even if the application is installed in different folders or drive
you can put the help file into the same directory of the application file,then you can use some api such as GetModuleFileName to get the path of application file.now you can get the directory of the help file by parsing the path of application file simply.
-
I have created a help file for the application i have developed. The help file was created using help workshop in visual studio. i used the following code to call the help file in my application ShellExecute(NULL, "open", "C:\\Documents and Settings\\Pradeep.DEEPA\\Desktop\\DesktopSearch\\hlp\\HELP.hlp", NULL, NULL, SW_SHOWNORMAL); the problem with this code is that if i install the application in some other drives or folders it wont work coz i have specified the path for the help file in the code itself. can anyone tell me how this can be changed so that help file works even if the application is installed in different folders or drive
sudeep_br wrote:
the problem with this code is that if i install the application in some other drives or folders it wont work coz i have specified the path for the help file in the code itself. can anyone tell me how this can be changed so that help file works even if the application is installed in different folders or drive
You can put your file in the directory where you put youe executable and specifiy the path as ".\\HELP.hlp" Knock out 't' from can't, You can if you think you can :cool: