几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量

几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量 (http://www.dimcax.com/hust/index.php)
-   DirectDWG (http://www.dimcax.com/hust/forumdisplay.php?f=89)
-   -   【转帖】dwgdirect calling convention (http://www.dimcax.com/hust/showthread.php?t=15956)

yang686526 2009-05-05 08:30 AM

【转帖】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


所有的时间均为北京时间。 现在的时间是 02:39 AM.