Solved

Starting a help file

Posted on 1998-06-10
6
155 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
Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

 
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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
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…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

773 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