All Forums
 Microsoft Windows CE
 .NET Application Development
 CEDB database [P/Invoke]
 Forum Locked
 Send Topic to a Friend
 Printer Friendly
Author Topic  

mhuman1

36 Posts

Posted - 14 Oct 2003 :  16:00:44  Show Profile  Email Poster
Can I use the CEDB functions such as CeMountDBVol,CeCreateDatabaseEx, CeOpenDatabaseEx, WriteUsersRecord, etc. while writing in evb.net and using the .netcf??

Thanks,
Keith Stallings

ctacke

877 Posts

Posted - 14 Oct 2003 :  16:32:42  Show Profile  Email Poster
You can P/Invoke almost anything. As long as it doesn't contain a float, a datetime, or a complex type it's pretty simple. The CEDB functions are not so simple to manage, though, and you'll end up doing a lot of pinning and manual memory management, which is not a fun prospect in the .NET environment. Basically you'll have to do an end-run around the garbage collector in several areas.

Take a look at these articles on P/Invoking:
http://smartdevices.microsoftdev.com/Learn/Articles/501.aspx
http://smartdevices.microsoftdev.com/Learn/Articles/500.aspx
Go to Top of Page
  Topic  
 Forum Locked
 Send Topic to a Friend
 Printer Friendly
Jump To:
Eurotech Support Forums © Eurotech Inc. Go To Top Of Page
This page was generated in 0.02 seconds. Snitz Forums 2000