PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

database functions

Hi,

Will PPL get integrated database functions, like some ADOCE ones, so it would be possible to access .CDB-files?

:)
PointOfLight · 29 Jul 2004, 06:33 UTC
You can use SQLite (www.sqlite.org), which is integrated into PPL. An ADOCE interface would be kind of cool, though, if it's not too tough.
Eric,

Can you confirm that you are sure that sqlite will access "cdb" files.

The reason I ask is that I have converted a microsoft database that I have here (using the ActiveSync facility) to give me a "cdb" file. I have been attempting to access the database using ADOCE from NSBASIC (without success but thats another story).

I certainly cannot access the tables in the "cdb" database using sqlite. SQL_OPEN works fine (but it never appears to return an error code if a file of the given name exists). Then performing a "select" on a table I know exists using either SQL_EXEC (or sqlite_exec) always fails (with a meaningless error code).
PointOfLight · 30 Jul 2004, 07:29 UTC
I'm sorry, I did not mean to imply that you could access a CDB file from SQLite. You must use SQLite files. If you wanted to use a CDB file, you would have to use ADOCE, which is not available. There are tools that will convert Access databases to SQLite, or I can help you with using ADOCE in NSBasic, if you really want to pursue that route.
Eric,

Thanks for that clarification. I was almost certain that sqlite had its own file structure but after reading your post I then had my doubts.

I'll keep plodding with NSBasic - its just an exercise to evaluate NSBasic for some of the projects I get involved in here, but to date I am far from impressed with what i see in their evaluation kit and unless something happens to radically change my opinion I will not be purchasing their product.

I would consider looking at writing the interface for PPL, but to date have been unable to find any documentation for the ADOCE31.dll API. The ActiveX component is fairly well documented but not directly applicable.

09:30 30/07 UTC

I found the sdk and downloaded it. All the header files and documentation are there, but adoce31 is a complex object implemenattion. This is far more complex than anything I have atatcked before - any port is beyond my capability! Sorry :(
Hi,

I might consider implementing ActiveX to PPL in a near future. Maybe this will help you with the SDK. Btw, can you send me this SDK so that I can look at it?

Regards,
Kornalius
PointOfLight · 30 Jul 2004, 14:08 UTC
Actually, if you implement ActiveX, there wouldn't be a need for the SDK. The SDK is only for accessing the adoce DLL directly.
Great.

Although, if I don't do the ActiveX soon, in the meantime maybe I can take a look at the SDK and make a library for it... If I find the time though. :)

Regards,
Kornalius
mervjoyce · 31 Jul 2004, 02:02 UTC — adocesdkzip.exe
Hi Kornalius,

The sdk is freely downloadable from MSDN - Its abt 7Mb in size - Try

http://www.microsoft.com/downloads/rele ... seID=25437