c运行库冲突问题

按照网上的方法,各种调试不成功,后来改成用共享MFC的dll,然后回退新加的代码,再把

#include <afxwin.h>    

#ifndef _AFX_NO_DB_SUPPORT
#include <afxdb.h>   // MFC ODBC
#endif // _AFX_NO_DB_SUPPORT

#ifndef _AFX_NO_DAO_SUPPORT
#include <afxdao.h>   
#endif // _AFX_NO_DAO_SUPPORT

#ifndef _AFX_NO_OLE_SUPPORT
#include <afxdtctl.h> 
#endif
#ifndef _AFX_NO_AFXCMN_SUPPORT
注释后,再回退,成功

原文地址:https://www.cnblogs.com/lizhengjin/p/4606202.html