近来在自学C++,在写一个连接excel的时候,想到,既然能操作2010的excel,那么也能操作2010的access。
代码在流于此。希望有人能用到。
char* strConn = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source='D:\\str.accdb';Persist Security Info=True";
m_pConnection->Open((_bstr_t)strConn, "", "", adModeUnknown);