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

yang686526 2009-05-04 07:11 PM

【转帖】debug assert failure
 
debug assert failure
debug assert failure
hi,
i am trying to create a managed c++ project but i am having a few problems.
as soon as i include dbdatabase.h i get a debug assertion failure when trying to run the program.
i have attached a sample project that has this problem which is just a new clr windows app with the includes "odacommon.h" and "dbdatabase.h" in the form1.h file. it all compiles fine but errors when i try to run it. if i comment out the #include "dbdatabase.h" line it runs ok.
please let me know what am i doing wrong?
thanks,
markl
attached files
i did not test your app, but i know that there is a known problem with vc8 /clr mode and /zc:wchar_t+
try to compile with /zc:wchar_t- switch.
vladimir
hi,
i have tried the /zc:wchar_t- switch but i get a load of "ambiguous call to overloaded function" errors and cannot compile.
without this i can compile ok, it is only running the app that has the problem.
please help,
mark


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