|
if(FAILED(CoInitializeEx(NULL, COINIT_MULTITHREADED)))
return FALSE;
HRESULT hr;
CLSID g_ClsID;
hr = CLSIDFromProgID(TEXT("ADOCE.Connection.3.1"), &g_ClsID);
hr = CoCreateInstance(g_ClsID, NULL, CLSCTX_INPROC_SERVER, IID__Connection, (LPVOID*&m_pConn);
hr = m_pConn->put_Provider(L"\\DiskOnChip\\pda\\myce.sdf");
hr = m_pConn->Open(L"Provider=microsoft.sqlserver.oledb.ce.2.0;DataSource=\\DiskOnChip\\pda\\myce.sdf",TEXT(""),TEXT(""),adOpenUnspecified);
上面的可以进行 操作
但是set->AddNew(_variant_t(L"id"),_variant_t(2));
还有set->Delete()
这些函数都不起作用是怎么回事啊
|
|