Link to home
Start Free TrialLog in
Avatar of win32
win32

asked on

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;
..
ASKER CERTIFIED SOLUTION
Avatar of AlexVirochovsky
AlexVirochovsky

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of win32
win32

ASKER

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 ??
Get current disk you can with function getdisk();
Get current dir you can with function getcurdir/getcwd
Avatar of win32

ASKER

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()
Avatar of win32

ASKER

And what about a function returning the path to the operating system
eg. c:\win95
 Dos that exists ??
Yes, GetWindowsDir