Error fwh802 getguiresources and windows nt 4 work

norberto
Posts: 566
Joined: Thu Aug 30, 2007 3:40 pm
Location: BR

Error fwh802 getguiresources and windows nt 4 work

Post by norberto »

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
norberto
Posts: 566
Joined: Thu Aug 30, 2007 3:40 pm
Location: BR

Post by norberto »

image:

Image
norberto
Posts: 566
Joined: Thu Aug 30, 2007 3:40 pm
Location: BR

Post by norberto »

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.
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Norberto,

We need to change our code to load getguiresources dynamically.
regards, saludos

Antonio Linares
www.fivetechsoft.com
norberto
Posts: 566
Joined: Thu Aug 30, 2007 3:40 pm
Location: BR

Post by norberto »

how? you cant test this new functions in several os, using vmware?? thanks
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

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

Antonio Linares
www.fivetechsoft.com
norberto
Posts: 566
Joined: Thu Aug 30, 2007 3:40 pm
Location: BR

Post by norberto »

have a sample? thanks
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

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
norberto
Posts: 566
Joined: Thu Aug 30, 2007 3:40 pm
Location: BR

Post by norberto »

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??
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

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
norberto
Posts: 566
Joined: Thu Aug 30, 2007 3:40 pm
Location: BR

Post by norberto »

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

thanks

DLL FUNCTION GetGuiResources( hProcess AS LONG, uiFlags AS LONG ) AS LONG PASCAL LIB "user32.dll"
norberto
Posts: 566
Joined: Thu Aug 30, 2007 3:40 pm
Location: BR

Post by norberto »

Antonio, dont solve the problem in windows nt workstation... have an way to disable this function???
norberto
Posts: 566
Joined: Thu Aug 30, 2007 3:40 pm
Location: BR

Post by norberto »

maybe api of windows nt is not the same of xp, vista... this function broke the compatibility of fwh.
norberto
Posts: 566
Joined: Thu Aug 30, 2007 3:40 pm
Location: BR

Post by norberto »

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.
hua
Posts: 861
Joined: Fri Oct 28, 2005 2:27 am

Post by hua »

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.
Post Reply