INT to LONG?

Blitz3D Forums/Blitz3D Beginners Area/INT to LONG?

How do I get Blitz to pass a Long variable to a DLL.

fyi...if I'm even on the right track we'll be able to ping using icmp.dll :>

In Visual Basic I can "ByVal IcmpHandle As Long"


Hrmm with a bit more research...it LOOKS like
INT = 4 byte (ie. LONG INTEGER)
SHORT = 2 byte (ie. SHORT INTEGER)

Am I looking at that correctly?

As far as I know a Blit Int is a Long (32 bit, signed integer), so just pass an Int.

fyi, don't worry so much about the name of the type, just worry about the data structure.

For example, don't think "int", think "32-bit value". So axeman is right, that it a Blitz int is analagous to a C long. You should also use % for dword, hwnd, ptr (if you know the exact memory address), 2 contiguous shorts, etc.

I think BLitz converts automatically for you.. not sure though.