我用vs2008编写c++程序,我的程序定义_ConnectionPtr pConn;没有错
一添加pConn.CreateInstance(__uuidof(Connection))能通过编译,但运行错误
This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
不知道怎么办,跪求解决啊
一添加pConn.CreateInstance(__uuidof(Connection))能通过编译,但运行错误
This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
不知道怎么办,跪求解决啊
解决方案 »
- 设置modem的数据流控制属性为无,该用哪个函数呀?哪个属性呀?急!急!急!急!急!急!急!急!急!急!急!急!急!急!急!急!急!
- 怎么计算CListCtrl的宽度?
- toolbar问题
- 我建了个属性表,但是编译的时候出错,说找不到父类CPropertyPage,请问是不是还要包含什么东西?
- 调试状态下程序运行正常,结束前却出现“未处理的异常:用户断点”,停留在mlock.c里面的_unlock函数的后括号处。
- 一个关于工具栏提示的问题!
- 高手进来看看,24小时内不解决会死人的!
- 《Windows程序设计》(第五版)((美)Charles Petzold,北京大学出版社),这本书质量怎样?
- 请问各位大哥,哪里有用UDP编程的例子,小弟在些谢过了。
- 请问注册dll的命令是...???
- 求问获取窗口句柄问题
- unknown error Ox800A0BCD 求帮组
try
{
//你的ADO代码
}
catch (_com_error& e)
{
CString strMsg;
strMsg.Format(_T("错误描述:%s\n错误消息%s",
(LPCTSTR)e.Description(),
(LPCTSTR)e.ErrorMessage());
AfxMessageBox(strMsg);
}
if (FAILED(hr))
{
_com_error e(hr);
AfxMessageBox(e.ErrorMessage());
return;
}
测试下CreateInstance返回值,看是否创建成功。