几何尺寸与公差论坛------致力于产品几何量公差标准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)
-   -   【转帖】win32 Or -win32 (http://www.dimcax.com/hust/showthread.php?t=19148)

yang686526 2009-05-07 07:15 PM

【转帖】win32 Or -win32
 
win32 or _win32?
win32 or _win32?
i'm trying to understand the usage of the win32 and _win32 macros in dwgdirect. i'm specifically interested in odfilebuf.
i know that _win32 is defined internally by vc. i also see that win32 is defined by a compiler option in the project i am working on.
are these two symbols used interchangeably in the dwgdirect code? or are they used to differentiate between platforms somehow?
should i perhaps not be defining win32?
thanks,
-jimc
odfilebuf has 2 implementations: windows (using windows specific functions providing proper file locking etc.) and cross-platform (using ansi functions).
win32 symbol is used instead of _win32 to provide ability to debug cross-platform code on windows.
sergey slezkin


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