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