HtmlHelp() problem

Post Reply
Marc Boissinot
Posts: 6
Joined: Thu Oct 13, 2005 3:41 pm
Location: Quebec City, Canada

HtmlHelp() problem

Post by Marc Boissinot »

Hi all,

I have problems making HtmlHelp() function work correctly. Following is a small sample that provokes a GPF the second time I press the "Help" button. I'm using FWH 2.8 (Sept. 2006 release) and xHarbour Builder (Oct. 2006 release)

Code: Select all

#include "FiveWin.ch"

function Main()

  DEFINE WINDOW oWnd FROM 10,10 TO 20,30
  @3,8 BUTTON "Help" OF oWnd SIZE 50,20 ACTION (HtmlHelp(0,"c:\fwh\manual\fwclass.chm",2,0))
  ACTIVATE WINDOW oWnd

Anybody having the same problem, or am I missing something ?

Thanks
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Marc,

La función HtmlHelp() en fwh\source\winapi\help32.prg y asociadas, tienen que modificarse de esta forma (faltaba el uso de la claúsula PASCAL):

Code: Select all

DLL32 Function HTMLHelp( ; 
   hWnd As LONG, cChmFile As LPSTR, nCommand As LONG, nTopic As LONG ) ; 
   As LONG PASCAL From "HtmlHelpA" Lib "hhctrl.ocx" 

DLL32 Function HTMLHelpCtx( ; 
   hWnd As LONG, cChmFile As LPSTR, nCommand As LONG, cTopic As LPSTR ) ; 
   As LONG PASCAL From "HtmlHelpA" Lib "hhctrl.ocx" 

DLL32 Function HTMLHelpPopup( ; 
   hWnd As LONG, cChmFile As LPSTR, nCommand As LONG, @sPopUp As LPSTR ) ; 
   As LONG PASCAL From "HtmlHelpA" Lib "hhctrl.ocx" 
regards, saludos

Antonio Linares
www.fivetechsoft.com
Post Reply