Take a look at this code:
CoInitialize(NULL);
_ConnectionPtr m_pConn;
m_pConn.CreateInstance(__uuidof(Connection));
m_pConn->Open(_bstr_t("Provider=MSDASQL.1;Persist Security Info=False;Data Source=Probe"),_bstr_t(""),_bstr_t(""),adConnectUnspecified)...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.