4dd Subj : Re: Accessing WinHelp files from application To : borland.public.cpp.borlandcpp From : Bob Gonder Date : Tue Feb 08 2005 09:02 am David Ayre wrote: >Tried that, but it doesn't work. I can run the Help file, but >can't use the WinHelp command e.g. > >WinHelp(hWnd,"help.hlp",HELP_CONTEXT,37); >I just get an error message saying "This file is not a windows >help file". I clear that and another box says "A newer version >of Help is needed to read this Help file". > >Any ideas? I just tried these things: Old 16bit help files: c:\cpp\borlandc\bin> start shed.hlp works. c:\cpp\borlandc\bin> winhelp shed.hlp works. c:\cpp\borlandc\bin> winhlp32 shed.hlp works. Newer 32bit help files: c:\cpp\bcc55\help> start bcb5.hlp works. c:\cpp\bcc55\help> winhelp bcb5.hlp "This file is not a windows help file" c:\cpp\bcc55\help> winhlp32 bcb5.hlp works. Conclusion: Execute the help file directly, or use the newer winhlp32. >The alternative would be to be able to use a compiled HTML help >file if there was an alternative to WinHelp(). Try executing hh.exe hh.exe MyHelp.html#ThisTopic hh.exe MyHelp.chm or You could ShellExecute( hwnd, "open", "myhelp.chm", 0,0, SW_SHOW ); . 0