Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Using Help files in Applikations

Posted on 1999-01-26
6
Medium Priority
?
244 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
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 

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

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

When writing generic code, using template meta-programming techniques, it is sometimes useful to know if a type is convertible to another type. A good example of when this might be is if you are writing diagnostic instrumentation for code to generat…
Unlike C#, C++ doesn't have native support for sealing classes (so they cannot be sub-classed). At the cost of a virtual base class pointer it is possible to implement a pseudo sealing mechanism The trick is to virtually inherit from a base class…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.
Suggested Courses

610 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