The site is currently in read-only mode for maintenance. Posting of new items will be available again shortly.
DeviceToDesktop functions allow you to transfer and/or synchronize MS Access databases (.mdb files) to a Windows CE device (.cdb files). These functions were designed to be used from Visual Basic, however it is still possible to call them from C++ projects by locating the function in the dll.
The original code was written by Nathan Lewis (email@example.com, http://www.ticz.com/~nlewis) I simply reorganized the functions in a class to make it easy to use from MFC projects. I use the Singleton pattern to ensure that the class is only instanciated once and the dll gets loaded only one time.
To use the class in your project you simply need to include it in your project. To get an instance of the
CAdoFiltr class you must use the
getInstance() function, you can't use the constructor since it is protected. For more information on the parameters you can pass to
DeviceToDesktop see MSDN.
CAdoFiltr* pAdoFiltr = CAdoFiltr::getInstance();
HRESULT hr = pAdoFiltr->DesktopToDevice("c:\\database\\test.mdb",
false, true, "\\My Documents\\test.cdb");
if (hr != S_OK)
I tested the code under Windows NT 4 Workstation with ActiveSync 3.5 and an iPAQ 3650 running PocketPC 2000
The documentation files were generated by doxygen, it explains the strange tags in the comment blocks through the code.
- For more information about ADOCE and the
DeviceToDesktop functions see MSDN.
- For more information about using these functions from C/C++ see the original contribution from Nathan Lewis.
- For more information about the Singleton pattern you can have a look to Pattern Digest.