?
Solved

Using Help files in Applikations

Posted on 1999-01-26
6
Medium Priority
?
238 Views
Last Modified: 2010-04-02
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;
..
0
Comment
Question by:win32
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
6 Comments
 
LVL 14

Accepted Solution

by:
AlexVirochovsky earned 30 total points
ID: 1185227
See API WinHelp(hWnd, "c:\\test.hlp", ....);
0
 

Author Comment

by:win32
ID: 1185228
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
 
LVL 14

Expert Comment

by:AlexVirochovsky
ID: 1185229
Get current disk you can with function getdisk();
Get current dir you can with function getcurdir/getcwd
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:win32
ID: 1185230
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
 

Author Comment

by:win32
ID: 1185231
And what about a function returning the path to the operating system
eg. c:\win95
 Dos that exists ??
0
 
LVL 14

Expert Comment

by:AlexVirochovsky
ID: 1185232
Yes, GetWindowsDir
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Errors will happen. It is a fact of life for the programmer. How and when errors are detected have a great impact on quality and cost of a product. It is better to detect errors at compile time, when possible and practical. Errors that make their wa…
  Included as part of the C++ Standard Template Library (STL) is a collection of generic containers. Each of these containers serves a different purpose and has different pros and cons. It is often difficult to decide which container to use and …
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.
Suggested Courses

765 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question