- #include "ca_mergex20.h"
- #pragma comment(lib,"oleaut32.lib")
- #pragma comment(lib,"ole32.lib")
- ......
- HRESULT hr;
- //初始化COM
- hr = CoInitializeEx(NULL,COINIT_MULTITHREADED);//?初始化COM
- if(FAILED(hr))
- {
- AfxMessageBox(_T("Initial COM failed"),MB_OK|MB_ICONINFORMATION);
- return FALSE;
- }
- hr = CoCreateInstance(CLSID_RemoteDataAccess, NULL, CLSCTX_INPROC_SERVER,
- IID_ISSCERDA, (LPVOID *)&pCERDA);
- ASSERT(hr == S_OK);
- ASSERT(pCERDA != NULL);
1>MyDbCeOperate.obj : error LNK2001: 无法解析的外部符号 CLSID_RemoteDataAccess
1>MyDbCeOperate.obj : error LNK2001: 无法解析的外部符号 IID_ISSCERDA
1>XSBase270 (ARMV4I)\Debug\DbCeTest.exe : fatal error LNK1120: 2 个无法解析的外部命令