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?
 
AlexVirochovskyCommented:
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
Cloud Class® Course: CompTIA Healthcare IT Tech

This course will help prep you to earn the CompTIA Healthcare IT Technician certification showing that you have the knowledge and skills needed to succeed in installing, managing, and troubleshooting IT systems in medical and clinical settings.

 
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.