HtmlHelp() problem

HtmlHelp() problem

Postby Marc Boissinot » Wed Dec 13, 2006 3:40 pm

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  Expand view  RUN
#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
Marc Boissinot
 
Posts: 6
Joined: Thu Oct 13, 2005 3:41 pm
Location: Quebec City, Canada

Postby Antonio Linares » Sun Dec 17, 2006 10:23 pm

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  Expand view  RUN
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
User avatar
Antonio Linares
Site Admin
 
Posts: 42150
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Return to FiveWin para Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 101 guests