Skip to main content
gamedev.net
🔒 Locked

__stdcall, CALLBACK

Started by quanghikaru Jul 2, 2006 at 10:13 PM 1 replies 1.4k views
Original Post
quanghikaru
quanghikaru
i don't know different between __stdcall function and normal function, and what's benefit when you use __stdcall. why every function are declared in DLL must be CALLBACK function. PLEASE !
Colin Jeanne
Colin Jeanne
__stdcall specifies how arguments are passed onto the stack and who is responsible for cleaning up after the function exits. Normally functions are __cdecl which has a different method for this.

Not all functions in a DLL must be __stdcall - what is necessary is that anyone who is calling the function knows the calling convention of the function.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.