|
|
chc> IMHO the HTML Help API should be supported by w32api because it is an
chc> important Windows feature (more so than RTF help) used by most
applications.
chc> I know that htmlhelp.lib is a static library so it is probably better if
chc> w32api has an equivalent library, but a direct import library is the next
chc> best thing. However, if linking directly with htmlhelp.lib works with MinGW
chc> then that should be good enough, but I haven't tried it. Have you, Phil?
Yes, I tried to link with an original htmlhelp.lib, but to no success,
so at first I had to use LoadLibrary/GetProcAddress, and now -
libhtmlhelp.a.
http://forums.codeblocks.org/index.php?topic=1145.0;wap2
back to same but no follow up, I doubt he got it.
its not just ME!
can we define htmlhelp as
LoadLibrary/GetProcAddress
another way?
Post a reply to this message
|
|
|
|
"alphaQuad" <alp### [at] earthlinknet> wrote:
> can we define htmlhelp as
> LoadLibrary/GetProcAddress
>
> another way?
glad you asked!!!!!!!!
htmlhelp.lib can bite my shinny metal ....
I'll never ask anything again, but real glad Nic was here, peace dude.
typedef HWND (WINAPI* FPHH)(HWND, LPCSTR, UINT, DWORD);
FPHH g_pHtmlHelp=NULL; // Function pointer
//HtmlHelp CALL lookup
// hKeyWord_LOOKUP(main_window,engineHelpPath, hh_aklink)
// hKeyWord_LOOKUP(NULL,engineHelpPath, hh_aklink)
void hKeyWord_LOOKUP(HWND,char *, HH_AKLINK);
void hKeyWord_LOOKUP(HWND w,char *hf, HH_AKLINK akLink) // [_MAX_PATH]
{
// Explicit linking of HHCtrl.ocx
if (g_pHtmlHelp==NULL) {
HINSTANCE hHelp=LoadLibrary("HHCtrl.ocx");
if (hHelp!=NULL)
(FARPROC&)g_pHtmlHelp=GetProcAddress(hHelp,"HtmlHelpA");
}
if (g_pHtmlHelp!=NULL)
{
HWND hWndResult=NULL;
hWndResult=g_pHtmlHelp(w,
hf, //helpfilepath
HH_KEYWORD_LOOKUP,
(DWORD)&akLink);
}
//http://www.codeguru.com/forum/showthread.php?t=51896
}
// replaces
//HtmlHelp (NULL, engineHelpPath, HH_KEYWORD_LOOKUP, (DWORD) &hh_aklink) ;
Post a reply to this message
|
|