debug程序不能运行?????
拷贝debug中的可执行文件,在有的机子可以运行,有的机子不可运行(这些机子均安装VC)
出错现象:
Runtime Error.
abnormal program termination!
但是在不可以运行的机子上打开程序重新在Debug下编译后可以运行。
我在程序加载时new了一个ADO类对象出错,屏蔽此句即正常。
在加载ADO类时,发现下面的话导致出错。
#define CREATEINSTANCE(sp,riid) { HRESULT _hr = sp.CreateInstance( __uuidof( riid ) ); \
if (FAILED(_hr)) _com_issue_error(_hr); }
CREATEINSTANCE(m_piConnection, Connection);
CREATEINSTANCE(m_piCommand, Command);
不知如何修改,请赐教!!!