Solved

Starting a help file

Posted on 1998-06-10
6
152 Views
Last Modified: 2010-05-03
When I load my help file, it loads in the old Win3.1 style. It has the hyperlink contents front, instead of the Win95 graphical front. I have both my .HLP and .CNT files in the same directory. I've also tried to load the help file two different ways:

vHelp& = WinHelp(Me.hwnd, "blah.hlp", HELP_CONTEXT, CLng(0))

and

CommonDialog1.HelpFile = AppPath + "\fmrg.HLP"
CommonDialog1.HelpCommand = cdlHelpContents
CommonDialog1.ShowHelp

Neither seems to help (no pun intended). Can anyone let me know what I'm doing wrong? Thanks!
0
Comment
Question by:BergJC
6 Comments
 
LVL 3

Expert Comment

by:jjmartin
ID: 1463028
The method you use to load the help file shouldn't matter.  The format of the help file should be independant of this.  Is it possible that you compiled the help file incorrectly.  Are you writing this help file your self, and if so, what are you using?
0
 
LVL 4

Expert Comment

by:yowkee
ID: 1463029
BergJC,

  If you are sure your help file is compiled into version 4 help file and have the .cnt file attended. Please try this,

Public Const HELP_FINDER = &HB
vHelp& = WinHelp(Me.hwnd, "blah.hlp", HELP_FINDER, 0)



0
 
LVL 2

Expert Comment

by:Sinclair
ID: 1463030
I think you can also use ShellExecute to run  the help file, but I am not sure how or if that would work.
0
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 2

Expert Comment

by:marti
ID: 1463031
Solution with Shell:

     Call Shell("WINHLP32 C:\Program Files\VB\help\VB5.HLP", vbNormalFocus)
0
 
LVL 1

Accepted Solution

by:
web_crusher earned 100 total points
ID: 1463032
use robohelp application and create a new help file in the environment you like
that open it with

CommonDialog1.HelpFile = AppPath + "\fmrg.HLP"
   CommonDialog1.HelpCommand = cdlHelpContents
   CommonDialog1.ShowHelp

it always work - you have problem on the hlp file
to c the contents - put at the same dir the cnt file - thats it - its a winner!
0
 
LVL 2

Author Comment

by:BergJC
ID: 1463033
Yowkee and marti both have solutions that work...there was nothing wrong with my help file, it was a matter of how it was loaded. Thanks!
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

708 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now