Subj : Re: Launching Help from prog in XP To : borland.public.cpp.borlandcpp From : David Ayre Date : Fri Jun 11 2004 02:43 am >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); > Thanks Jogy, Where do I get the ocx files from? Cheers, David .