What Extern type to use?

BlitzMax Forums/BlitzMax Programming/What Extern type to use?

TeaVirus(Posted 2007) [#1]
Could someone please explain when it's appropriate to use the various Extern types, such as "C" or "Os"? Through trial and error, it seems that "C" should be used when calling functions from an imported .c source file and "Os" should be used when calling functions in a shared library. Is this correct?


Brucey(Posted 2007) [#2]
I generally use "C" for all externs, unless it's a windows DLL which specifically has those wierd @ symbols, in which case it needs "Win32" so you don't have to include the @'s in the naming.


TeaVirus(Posted 2007) [#3]
Ok, just wanted to make sure I was doing it correctly. Thanks Brucey.