Solved

Starting a help file

Posted on 1998-06-10
6
164 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
[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
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
Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

 
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

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!

Question has a verified solution.

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

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
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…
Suggested Courses
Course of the Month8 days, 21 hours left to enroll

615 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