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