Using Help files in Applikations

1) I have made a helpfile: Test.hlp
2) I have made a windows program !
How do I do this (Start a Help file from an applikation)
..
 IDM_HELP :
  StartFile(c:\Test.hlp)
 return 0;
..
win32Asked:
Who is Participating?
 
AlexVirochovskyConnect With a Mentor Commented:
See API WinHelp(hWnd, "c:\\test.hlp", ....);
0
 
win32Author Commented:
Year that works fine BUT how do i do this:

WinHelp(hWnd, "test.hlp", ....); NOT writing where the location is "C:\...", is there a function like this GetExePath(); So I could write String=GetExePath+helpfile.hlp;

If I do like this WinHelp(hWnd, "test.hlp",...) Windows somtimes >>sayes that the "test.help" file is not found << because the hole path is not specifyed !! How do I solve that problem ??
0
 
AlexVirochovskyCommented:
Get current disk you can with function getdisk();
Get current dir you can with function getcurdir/getcwd
0
Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
win32Author Commented:
1)What do I have to include lib .h ??
2) Not what I ment !, A function returning the path of the program running, like the Java function GetDocumentDatabase()
0
 
win32Author Commented:
And what about a function returning the path to the operating system
eg. c:\win95
 Dos that exists ??
0
 
AlexVirochovskyCommented:
Yes, GetWindowsDir
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.