摘要:
void smsLogon::InitSQLServer(CString server, CString db, CString UserName, CString Pwd) { m_pConnection.CreateInstance("ADODB.Connection"); CString strCn; strCn.Empty(); strCn="provider=SQLOLEDB;data source="+server +";initial catalog="+db +";userID="+UserName +";Password="+Pwd; _variant_t bcnstr 阅读全文