POV-Ray : Newsgroups : povray.programming : win98se mingw povray Server Time
2 Jun 2024 06:06:26 EDT (-0400)
  win98se mingw povray (Message 31 to 32 of 32)  
<<< Previous 10 Messages Goto Initial 10 Messages
From: alphaQuad
Subject: Re: win98se mingw povray
Date: 5 Dec 2007 20:30:00
Message: <web.47574f89d201812ed8615d340@news.povray.org>
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

From: alphaQuad
Subject: Re: win98se mingw povray
Date: 7 Dec 2007 19:50:00
Message: <web.4759e953d201812ef7c0db0c0@news.povray.org>
"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

<<< Previous 10 Messages Goto Initial 10 Messages

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.