_bstr_t str="Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=APPLICATION;Data Source=PC2009101215owh";
m_CoPtr.CreateInstance(__uuidof(Connection));
m_CoPtr->Open(str,"","",NULL);<--调试运行到这里为什么出现这样的错误?如下:
_bstr_t str="Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=APPLICATION;Data Source=PC2009101215owh";
m_CoPtr.CreateInstance(__uuidof(Connection));
m_CoPtr->Open(str,"","",NULL);<--调试运行到这里为什么出现这样的错误?如下:
从装一下c++2005就可以了