HELP!!!!!!!!!!!!!!!!!!!!

G

Guest

Hello, I am new .net and the whole mobile programming scene but I am having
the worst time with setting permissions. I am programming an app for an o2
mini, it has a hidden directory called databases, with all the files inside
hidden also. Now I cant check if it exists because the path is not
discoverable, and theres no read or execute rights on the dir either. Its
possible with normal .net 'System.Security.Permissions.FileIOPermission'
library but not with cf and I have already tried oncf. Please help me out
this is very urgent and driving me nuts.
 
P

Peter Foot [MVP]

If you are referring to the "Databases" folder which you can see in
ActiveSync, this isn't a real filesystem folder, it's a virtual folder shown
by activesync to show details of databases held within the object store on
the device. Depending on the specific databases there are particular APIs to
go through to work with the data, none of which are inherently supported
with .NETCF e.g.

POOM - Calendar/Contacts/Tasks
MAPI - Messaging/Email/Sms
PhoneOpenCallLog etc - Call Log

Any other system tables are accessible through the CEDB APIs, though none
have documented structure so not recommended that you go near them, and any
code you write with these APIs will break when run on WM5.0 devices. ADOCE
(ActiveX control for data access with eVB/eVC which is deprecated) also
allowed you to write pocket access (another layer on top of CEDB) tables to
the object store and had some sync support built into ActiveSync. This is
not recommended for new projects, but there are third-party libraries to
help with migrating old projects.

If you are looking to create your own databases take a look at SQL CE which
is the easiest option for getting started quickly as there is support
included with Visual Studio.

Peter
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top