DECLS convertion ?

BlitzMax Forums/BlitzMax Programming/DECLS convertion ?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Perturbatio (Posted 2005-02-24 02:05:19)
What is ?Win32 ... ? Is this a shortcut command of some kind? (I'm not up on all the lingo yet..)


From what I can tell (and I may be wrong), it is a directive telling the compiler that you are calling a win32 library. It will still compile and run if you remove it, but you get an error when your program exits.

The ?Win32...? just tells BMax to compile that bit only on a Windows system (compiler directive).

The bit that's telling BMax that you are calling a Windows library would be...Extern "Win32"

That's the way I understand it at least. I too could be wrong though ;o)