FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Error fwh802 getguiresources and windows nt 4 work
Posts: 566
Joined: Thu Aug 30, 2007 03:40 PM

Error fwh802 getguiresources and windows nt 4 work

Posted: Wed Feb 20, 2008 12:13 PM

Hi, fwh802 works fine in xp, but in some workstations with windows nt 4 work+sp6 got this error :

getguiresources in user32.dll

fwh801 dont ocour.

thanks

Posts: 566
Joined: Thu Aug 30, 2007 03:40 PM

Error fwh802 getguiresources and windows nt 4 work

Posted: Wed Feb 20, 2008 12:15 PM
image:

Posts: 566
Joined: Thu Aug 30, 2007 03:40 PM

Error fwh802 getguiresources and windows nt 4 work

Posted: Wed Feb 20, 2008 12:22 PM

i using:

fwh802, xharbour 12/02/2008, bcc 551, ads server, workstations with windows xp , windows 2000 and windows nt 4 work, all with last sp.

Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM

Error fwh802 getguiresources and windows nt 4 work

Posted: Wed Feb 20, 2008 07:24 PM

Norberto,

We need to change our code to load getguiresources dynamically.

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 566
Joined: Thu Aug 30, 2007 03:40 PM

Error fwh802 getguiresources and windows nt 4 work

Posted: Wed Feb 20, 2008 07:47 PM

how? you cant test this new functions in several os, using vmware?? thanks

Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM

Error fwh802 getguiresources and windows nt 4 work

Posted: Thu Feb 21, 2008 09:30 AM

i.e. declaring it as DLL FUNCTION ... in your main PRG

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 566
Joined: Thu Aug 30, 2007 03:40 PM

Error fwh802 getguiresources and windows nt 4 work

Posted: Thu Feb 21, 2008 12:14 PM

have a sample? thanks

Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM

Error fwh802 getguiresources and windows nt 4 work

Posted: Thu Feb 21, 2008 01:55 PM

Add this to your main PRG:

DLL FUNCTION GetGuiResources( hProcess AS LONG, uiFlags AS LONG ) AS LONG PASCAL LIBRARY "user32.dll"

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 566
Joined: Thu Aug 30, 2007 03:40 PM

Error fwh802 getguiresources and windows nt 4 work

Posted: Thu Feb 21, 2008 06:23 PM

Antonio, i make this:

include 'dll.ch'

DLL FUNCTION GetGuiResources( hProcess AS LONG, uiFlags AS LONG ) AS LONG PASCAL LIBRARY "user32.dll"

and receive:

Error E0030 Syntax error: "syntax error at 'FUNCTION'"

whats wrong??

Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM

Error fwh802 getguiresources and windows nt 4 work

Posted: Thu Feb 21, 2008 06:36 PM

Norberto,

My mistake, this is the right syntax:

DLL FUNCTION GetGuiResources( hProcess AS LONG, uiFlags AS LONG ) AS LONG PASCAL LIB "user32.dll"

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 566
Joined: Thu Aug 30, 2007 03:40 PM

Error fwh802 getguiresources and windows nt 4 work

Posted: Thu Feb 21, 2008 06:43 PM

Antonio, solved, not LIBRARY, but LIB, in syntax.

thanks

DLL FUNCTION GetGuiResources( hProcess AS LONG, uiFlags AS LONG ) AS LONG PASCAL LIB "user32.dll"

Posts: 566
Joined: Thu Aug 30, 2007 03:40 PM

Error fwh802 getguiresources and windows nt 4 work

Posted: Thu Feb 21, 2008 06:46 PM

Antonio, dont solve the problem in windows nt workstation... have an way to disable this function???

Posts: 566
Joined: Thu Aug 30, 2007 03:40 PM

Error fwh802 getguiresources and windows nt 4 work

Posted: Thu Feb 21, 2008 06:47 PM

maybe api of windows nt is not the same of xp, vista... this function broke the compatibility of fwh.

Posts: 566
Joined: Thu Aug 30, 2007 03:40 PM

Error fwh802 getguiresources and windows nt 4 work

Posted: Thu Feb 21, 2008 07:04 PM

i have two options: back to fwh701, update the workstations to win2000 (works??).
i guess before you include this new features, you have test in several versions of windows.

Posts: 1096
Joined: Fri Oct 28, 2005 02:27 AM

Error fwh802 getguiresources and windows nt 4 work

Posted: Fri Feb 22, 2008 03:02 AM

Norberto,
I'm not sure how vital GetGuiResources() is but if I were you, rather than going back to an older version of FWH I'd just put in a stub of GetGuiResources() for the time being.

FWH 11.08/FWH 19.12

BCC5.82/BCC7.3

xHarbour/Harbour