Page 1 of 1

64 bits PureLibraries

Posted: Tue Dec 24, 2013 11:03 am
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.

Re: 64 bits PureLibraries

Posted: Tue Dec 24, 2013 11:05 am
by Fred
'Long' is like 'Integer' in desc file, so you can safely use it

Re: 64 bits PureLibraries

Posted: Tue Dec 24, 2013 11:23 am
by GJ-68
Thank you Fred
Joyeux Noël.