m_pRecondSet.CreateInstance(__uuidof(Recordset));
m_pRecondSet->Open("SELECT * FROM Type" , m_pConnect.GetInterfacePtr(),
adOpenDynamic , adLockOptimistic , adCmdText);
while(!m_pRecondSet->adoEOF) {
int number;
_variant_t var;
CString strMusicName;
CString strMusicAddress;
var = m_pRecondSet->GetCollect("Type");
if(var.vt != NULL)
{
strMusicAddress = (LPCTSTR)_bstr_t(var);
AfxMessageBox(strMusicAddress);
m_pRecondSet->MoveNext();
}
}红色的部分总是报Unhandled expection in *.dll : Microsoft C++ expection
m_pRecondSet->Open("SELECT * FROM Type" , m_pConnect.GetInterfacePtr(),
adOpenDynamic , adLockOptimistic , adCmdText);
while(!m_pRecondSet->adoEOF) {
int number;
_variant_t var;
CString strMusicName;
CString strMusicAddress;
var = m_pRecondSet->GetCollect("Type");
if(var.vt != NULL)
{
strMusicAddress = (LPCTSTR)_bstr_t(var);
AfxMessageBox(strMusicAddress);
m_pRecondSet->MoveNext();
}
}红色的部分总是报Unhandled expection in *.dll : Microsoft C++ expection
解决方案 »
- vc 如何读取IO port
- 请问一个语法问题和一个系统问题
- 用C和ODBCAPI调用存储过程返回值的奇怪问题。。
- 哪儿有 MSDN Library2001.10 光盘下载? 找不到呀
- 帮忙推荐几本好书
- 紧急求助:如何在安全模式下激活xp home版,正常启动进不去,为什么??在线等待!
- 使用标准的Berkeley Socket编程,在阻塞状态下如何得知硬件故障信息?
- CListctrl样式为icon怎么用?
- 到里是我错了,还是盖次的错:我将win2000的几个共享文件夹限制了用户数,当十多台工作站访问时,打不开文件!
- 在线程中处理消息
- 视频保存读取相关
- 如何在一个新建的MFC单文档程序运行之前,先显示出一个用户登陆的窗口?
::CoInitialize(null);
catch
判断异常情况