pb4.30 x64 and import lib

Windows specific forum
User avatar
bingo
Enthusiast
Enthusiast
Posts: 210
Joined: Fri Apr 02, 2004 12:21 pm
Location: germany/thueringen
Contact:

pb4.30 x64 and import lib

Post by bingo »

x32 sample:
Import "User32.lib"
MessageBoxA(Window.l, Body$, Title$, Flags.l = 0)
EndImport
MessageBoxA(0, "Hello", "World")

in x64:
Import "User32.lib"
MessageBoxA(Window.i, Body$, Title$, Flags.l = 0)
EndImport
MessageBoxA(0, "Hello", "World")

:roll:

in x64 the win handle is .i ? not .l ?
["1:0>1"]
Fred
Administrator
Administrator
Posts: 18360
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Post by Fred »

Yes, it's 'i'.
citystate
Enthusiast
Enthusiast
Posts: 638
Joined: Sun Feb 12, 2006 10:06 pm

Re: pb4.30 x64 and import lib

Post by citystate »

bingo wrote:x32 sample:
Import "User32.lib"
MessageBoxA(Window.l, Body$, Title$, Flags.l = 0)
EndImport
MessageBoxA(0, "Hello", "World")

in x64:
Import "User32.lib"
MessageBoxA(Window.i, Body$, Title$, Flags.l = 0)
EndImport
MessageBoxA(0, "Hello", "World")

:roll:

in x64 the win handle is .i ? not .l ?
it probably wouldn't hurt to substitute .i for .l in x32 architecture too - just in case your code is compiled on a x64 machine elsewhere...
there is no sig, only zuul (and the following disclaimer)

WARNING: may be talking out of his hat
Post Reply