查看单个帖子
旧 2009-05-05, 08:30 AM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】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
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)