Subj : Re: Launching Help from prog in XP To : borland.public.cpp.borlandcpp From : Jogy Date : Thu Jun 10 2004 06:00 pm David Ayre wrote: >>>Can you try to build an HTMLHelp and use it instead? >>>(You have to change WinHelp() class with HTMLHelp() calls) >>> >>> >>>-- >>>Jogy >>>http://www.jogy.net/ >>>jogy@sirma.bg >> > > I can't find any reference to HTMLHelp() in the Borland Help > files. What is the full format of the command to call a context > related help page? > > Cheers, > > David Hello, You may find information here: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/htmlhelp/html/vsconHowcallingthehtmlhelpapi.asp You can get the htmlhelp.h file from OWLNext site: http://owlnext.sourceforge.net/add_ons/add_fil.zip It works with Borland C++ 5, try to see if it works with 4.5 ... if not, then probably you will not be abel to use HTMLHelp Afterwards you can load htmlhelp.ocx dynamicaly and call it's methods, like this: typedef HWND WINAPI (*HtmlHelpFunc)( HWND hwndCaller, LPCSTR pszFile, UINT uCommand, DWORD dwData ); const char pszHelpOCXCtrl [] = "hhctrl.ocx"; hHelpOCX = ::LoadLibrary(pszHelpOCXCtrl); if (!hHelpOCX) { ::MessageBox(hwndCaller, "Cannot use the html help!", "Error", MB_OK); return; } HTMLHelp = (HtmlHelpFunc)::GetProcAddress(hHelpOCX, ATOM_HTMLHELP_API_ANSI); // Now call HTMLHelp functions: HTMLHelp(hWnd, "myhelp.chm", HH_DISPLAY_TOPIC, 0); HTMLHelp(hWnd, "myhelp.chm", HH_HELP_CONTEXT, id); -- Jogy http://www.jogy.net/ jogy@sirma.bg .