CPB Mailing List

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [BCB1] Help with WinHelp



Probabily too obvious but are you sure that your help file can be located with
what you pass in for a name. i.e. Do you pass in just the file name or path
information + the file name?

May be worth considering.

Does anyone know of the MS GetLastError() method would have a value to
indicate why the WinHelp() call failed?

Von Colborn
Cornerstone Systems, Inc


Kreyman wrote:
> 
> WinHelp works all right under Win95 (at least in my program)
> 
> ----------
> > From: David Simpson <david@aicpl.com.au>
> > To: cpb-thread@zdtips.com
> > Subject: [BCB1] Help with WinHelp
> > Date: 13 марта 1998 г. 7:13
> >
> > Hi,
> >
> > I can't seem to get the WinHelp function to work when running under
> windows
> > 95.  The help file says that it is supported by Windows 95 but the
> function
> > only seems to work when the application runs on a windows NT machine.
> Does
> > anyone know of any reason why this would be so?  or how to get any
> extended
> > error information.  When the function fails it returns 0, but thats all I
> > get, no help window is opened, or error messages displayed.  The
> offending
> > line of code is below :
> >
> >   WinHelp(this, help_file.c_str(), HELP_FINDER, 0);
> >
> > where:  this:        is the main program form
> >         help_file:   is an AnsiString containing a valid help filename
> >
> > I have tried other flag values instead of HELP_FINDER but none have
> worked.
> > Any Suggestion would be greatly appreciated,
> >
> > Thanks in Advance
> >
> > David
> > ========================================================================
> > David Simpson                          email : david@aicpl.com.au
> > Technical Director                     phone : +61-2-9476-2244
> > Amalgamated Instrument Co Pty Ltd      fax   : +61-2-9476-2902
> > 5/28 Leighton Place, Hornsby,
> > NSW   Australia   2077
> >


W Komornicki's Home Page | Main Index | Thread Index