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

yang686526 2009-05-07 06:42 PM

【转帖】wchar-t Issues In Vc2005sp1
 
wchar_t issues in vc2005sp1
wchar_t issues in vc2005sp1
hi,all. i just went though some threads about wchar_t issues. in a summary, dd2.4 is /zc:wchar_t- (not vc2005 default). the bug is from ms's /clr option under managed code.but i want to use dd in /zc:wchar_t+. if my app isnot managed code, is it safe to use /zc:wchar_t+ ? or we have to wait for next version of dd. thanks!
there is a compiler bug in /crl implementation, that makes impossible to use some language constructions in /wchar_t- libraries.
you can use dd libs w/o switching your projects to /wchar_t- only in unmanaged mode.
(this is true for 2.5 also. i didn't check vc9 though - perhaps this bug is fixed there).
vladimir
is this fixed in vc9?
afaik, the bug you referred to can be avoided by including #using declarations after dd headers. also, it concerns only /zc:wchar_t-
vladimir


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