64 bits PureLibraries

Just starting out? Need help? Post your questions and find answers here.
GJ-68
User
User
Posts: 32
Joined: Sun Jun 23, 2013 1:00 pm
Location: France (68)

64 bits PureLibraries

Post by GJ-68 »

Hello,

I want to rebuild my 32 bits visualC PureLibraries for PB x64.
I'm confused with the return data type to use in the ".desc" file.

For example:
in "PureBasic\SDK\VisualC\SampleGadget\ListIconSampleGadget.c":

Code: Select all

M_PBFUNCTION(HWND) PB_ListIconSampleGadget
returns a 64 bits HANDLE on x64.

in "PureBasic\SDK\VisualC\SampleGadget\ListIconSampleGadget.desc":

Code: Select all

ListIconSampleGadget, ...
Long | Unicode
Long is a 32 bits data type even in PBx64.

integer is not an option for a return value in a ".desc" file,
so what should I use for a 64 bits return data type (Long, Quad ???)

Thanks.
Fred
Administrator
Administrator
Posts: 18360
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: 64 bits PureLibraries

Post by Fred »

'Long' is like 'Integer' in desc file, so you can safely use it
GJ-68
User
User
Posts: 32
Joined: Sun Jun 23, 2013 1:00 pm
Location: France (68)

Re: 64 bits PureLibraries

Post by GJ-68 »

Thank you Fred
Joyeux Noël.
Post Reply