Page 1 of 1

pb4.30 x64 and import lib

Posted: Mon Nov 24, 2008 11:22 am
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 ?

Posted: Mon Nov 24, 2008 1:19 pm
by Fred
Yes, it's 'i'.

Re: pb4.30 x64 and import lib

Posted: Wed Dec 03, 2008 5:47 am
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...