高级会员
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
|
【转帖】dwgdirect calling convention
dwgdirect calling convention
dwgdirect calling convention
hello!
would someone please explain why dwgdirect uses the __cdecl calling convention on windows when __stdcall is the defacto standard for modular products?
also, is there a #define i can use to get my code to expect __cdecl for dwgdirect functions? i've looked (briefly) and didn't find anything that looked useful for this purpose.
finally, the user documentation for dwgdirect doesn't mention #define'ing dd_client_build to avoid problems with your memcpy() redefinition. could you add mention of this, please?
thanks!!
regards,
rick spates
dimension4, inc.
__stdcall is standard when functions are to be called from non-c++ modules. dd is not supposed to be used from non-c++ modules, and therefore it uses default c++ calling convention.
vladimir
|