Callback function question

BlitzMax Forums/BlitzMax Programming/Callback function question

Thank you Sweenie, that shed a bit of light indeed !

So, to figure out if a function needs to be called with a standard calling convention, or with a C,C++ calling convention, as you stated, has to be found taking a look at the exported function decoration.

For example the callback function, which is a parameter in the MidiInOpen function, is described by MidiInProc:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/multimed/htm/_win32_midiinproc.asp

Since it has no 'decoration', if I understand right, that means that is a a standard calling convention. So, "Win32" have to been used at the end of the function declaration.

Or am I missing something ?

Sergio.