A used API32 App work efficacious on a Win/Cpu64

Everything else that doesn't fall into one of the other PB categories.
User avatar
Tomi
Enthusiast
Enthusiast
Posts: 270
Joined: Wed Sep 03, 2008 9:29 am

A used API32 App work efficacious on a Win/Cpu64

Post by Tomi »

I use some API32 codes in project, can i sure it work in a Win64?
my things is:
WinXP final 32b + PB 4.3.1 + cpu 32b

Sorry, my EN is not good, please call to me as simple :oops:
Thanks
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Post by srod »

If your program is to run as a 32-bit application under Win 64 (as a WoW64 application) then you can be assured that everything will run fine if it runs under the corresponding 32-bit version of Windows.

If you are hoping to compile your program with a 64-bit version of Purebasic to run natively under Win 64 then there are no absolute guarantees that your code will run okay. There are certain things you have to change such as pointer variables being 64-bit and Win 64 does impose certain rules on structure alignments etc. However, my experience is that it is a relatively straight forward affair to get your code compiling and running under PB x64 / Win 64 and indeed to have a single source-base which is compatible with both PB x64 and PB x86.
I may look like a mule, but I'm not a complete ass.
User avatar
Tomi
Enthusiast
Enthusiast
Posts: 270
Joined: Wed Sep 03, 2008 9:29 am

Post by Tomi »

Very well, Thanks srod
have nice days without coding :D
Post Reply