我在evc下编写使用adoce3.1访问sql ce 数据库的程序,按照adoce访问的顺序创建connection出错,
使用CoInitializeEx()函数报错:
sqlcedemoDlg.obj : error LNK2019: unresolved external symbol __imp__CoInitializeEx referenced in function "protected: virtual int __thiscall CSqlcedemoDlg::OnInitDialog(void)" (?OnInitDialog@CSqlcedemoDlg@@MAEHXZ)
使用CLSIDFromProgID()函数就报错:
sqlcedemoDlg.obj : error LNK2019: unresolved external symbol __imp__CLSIDFromProgID referenced in function "private: int __thiscall CSqlcedemoDlg::CreateConnection(void)" (?CreateConnection@CSqlcedemoDlg@@AAEHXZ)