用ADO
找到篇文献, LZ可以去看看.
Using ADOCE from eVC
When programming in eVC to SQL Server CE, we recommend using OLEDB CE. It is also possible, however, to access SQL Server CE using eVC through ADOCE with the following steps:
To generate the necessary include files, first copy Adocec31.idl, Adoce31.idl, and Adoxce31.idl from the Include directory of the Dataaccess31 install, by default \Windows CE Tools\dataaccess31\include, to the include directory of your SDK. For the Pocket PC SDK, this is \Windows CE Tools\wce300\MS Pocket PC\include, by default.
In a command window, run the WceXXX.bat file in the EVC install directory that matches the OS version and processor type of your device. If you are using a Windows CE 3.0 ARM device, the default path is C:\Program Files\Microsoft eMbedded Tools\EVC\WCE300\BIN\wcearm.bat. You should use the WCEXXX subdirectory that matches your version of Windows CE and the WceXXX.bat file that matches the processor type of your device.
In the command window, run midl first on the Adocec31.idl file and then on the Adoce31.idl file. You need to run midl on Adoxce31.idl only if you plan to use ADOXCE. This step will generate the include files necessary to use ADOCE through eVC.