FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Pocket PC Windows CE Object Store
Posts: 284
Joined: Mon Oct 24, 2005 08:04 PM
Windows CE Object Store
Posted: Wed May 24, 2006 07:09 PM

All,

Is there anyway to get data from a .dbf into a Windows CE Object Store? Or is there anyway to use ADOCE on the Pocket PC? (Object Store is where Windows Mobile stores database files)

If I can get data from the .dbf into the object store I can use a 3rd party report writer for the handheld that will work with any ir or bluetooth enabled printer.

Thanks,
Randal Ferguson

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Windows CE Object Store
Posted: Thu May 25, 2006 08:03 AM

Randal,

Do you have more info about the "Object store" ?

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 207
Joined: Fri Oct 07, 2005 07:58 AM
Windows CE Object Store
Posted: Thu May 25, 2006 01:01 PM
Hello!

I found this information:
http://blogs.msdn.com/ce_base/archive/2 ... s_EDB.aspx

CEDB was created as a lightweight database API for Windows CE. A long time back, before I started at Microsoft, maybe the CE 2.0 days or even earlier. It originally ONLY stored its data in the object store. But then as flash got cheaper and people started building more devices with persistent storage, we needed a database that could store its data in other places. So some APIs were added to CEDB, to let it store its databases inside a "volume" (file) on any store. However CEDB was really built to operate on a RAM-based store, does not work efficiently for storing data in slower media like flash. It can end up writing to flash much more than you'd really want.

As CEDB started showing its age, the SQL team took up the challenge of providing a better database engine for Windows CE. We had SQL-CE but that was much heavier weight than CEDB. The SQL team built a lighter engine, and put an API on top of it that closely mimicked the CEDB APIs. That makes it easier to migrate existing applications that use CEDB over to use EDB. EDB is much more efficient about storing its data (and it better be, considering it was written by database experts instead of device hacks like myself).

For now Windows CE and Windows Mobile support both CEDB and EDB, but over time we'd like to get rid of CEDB.

Unfortunately there aren't any tools to convert your code from using CEDB APIs to using EDB APIs, or to convert your existing CEDB databases to EDB. Maybe someone could update our database conversion wizard (http://www.microsoft.com/windowsmobile/ ... rtoys.mspx) to do that. But to be honest I'm not aware of any effort to do that.


Roman
© I'm not patented!
Posts: 284
Joined: Mon Oct 24, 2005 08:04 PM
Windows CE Object Store
Posted: Thu May 25, 2006 01:29 PM

Continue the discussion