ADO til WINCE 2.11
HejI har et problem med VC++ til WINCE. Jeg ønsker at bruge ADO til WinCe. men når jeg compiler følgende linie (som jeg har fra en demo af ADO til CE):
if (FAILED(hr = CoCreateInstance(CLSID_ADOCERecordset, NULL,
0, IID_IADOCERecordset,
(void**)&g_pRecordSet))){"kode"}
får jeg følgende fejlmeddelser:
Compiling...
HelloCE.c
c:\windows ce projekt uvt\helloce\helloce.c(65) : error C2065: 'CLSID_ADOCERecordset' : undeclared identifier
c:\windows ce projekt uvt\helloce\helloce.c(65) : warning C4047: 'function' : 'const struct _GUID *const ' differs in levels of indirection from 'int '
c:\windows ce projekt uvt\helloce\helloce.c(65) : warning C4024: 'CoCreateInstance' : different types for formal and actual parameter 1
c:\windows ce projekt uvt\helloce\helloce.c(65) : error C2115: 'function' : incompatible types
c:\windows ce projekt uvt\helloce\helloce.c(65) : warning C4024: 'CoCreateInstance' : different types for formal and actual parameter 4
Error executing cl.exe.
TestADOCE.exe - 2 error(s), 3 warning(s)
Jeg har included ADOCE.H og lagt ind i projeket ADOCE_I.c, CLSID_ADOCERecordset er defineret i ADOCE_I.c.
Er der nogen der har et forslag til hvad der kan være galt. Jeg har en fornemelse at det kan opsætning af compilerne.
Hilsen Uffe
