Structures 64-bit vs 32-bit

Mac OSX specific forum
spacebuddy
Enthusiast
Enthusiast
Posts: 364
Joined: Thu Jul 02, 2009 5:42 am

Structures 64-bit vs 32-bit

Post by spacebuddy »

Hi All,

I have a structure.

Structure Prefs
Header.s{30}
FileName.s{60}
ProgramName.s{100}
Resize.i
FullScreen.i
EndStructure

How can I make this structure compatible with x86 and x64? When I save the structure to disk they are not the same size, the x64 is larger.
Thanks :D
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Re: Structures 64-bit vs 32-bit

Post by ts-soft »

Code: Select all

Structure Prefs
  Header.s{30}
  FileName.s{60}
  ProgramName.s{100}
  Resize.l
  FullScreen.l
EndStructure
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
spacebuddy
Enthusiast
Enthusiast
Posts: 364
Joined: Thu Jul 02, 2009 5:42 am

Re: Structures 64-bit vs 32-bit

Post by spacebuddy »

ts-soft wrote:

Code: Select all

Structure Prefs
  Header.s{30}
  FileName.s{60}
  ProgramName.s{100}
  Resize.l
  FullScreen.l
EndStructure
Thank you, that worked :D
Post Reply