From: Azzi Stefano on
Hi, in my application i need to create a backup of pim.vol but i have a
problem with "Appointemens Database".

for all database in pim.vol i don't have problem, i open original Pim.vol
and create a new Pim_Backup.vol so i open all database in Pim.vol with
CeOpenDatabaseInSession, get all information with CeGetDBInformationByHandle
and create a copy in my Pim_Backup.vol with CeCrateDataBaseWithProps.
I read all record...for all DB in Pim.vol and write into same DB in
Pim_Backup.vol...and this work fine....for all DB in pim.vol...but not for
"Appointments Database".
When i write records with CeWriteRecordProps in Pim_Backup.vol i receive
this error "ERROR_ACCESS_DENIED".

Can you help me?

From: Peter Foot [MVP] on
Is there any chance your device is syncing with activesync at the time or
are you in the process of editing an item on the device?

Peter

--
Peter Foot
Device Application Development MVP
www.peterfoot.net | www.inthehand.com

"Azzi Stefano" <AzziStefano(a)discussions.microsoft.com> wrote in message
news:2A6C9C6A-AC19-4479-9675-ECD70E784BC8(a)microsoft.com...
> Hi, in my application i need to create a backup of pim.vol but i have a
> problem with "Appointemens Database".
>
> for all database in pim.vol i don't have problem, i open original Pim.vol
> and create a new Pim_Backup.vol so i open all database in Pim.vol with
> CeOpenDatabaseInSession, get all information with
> CeGetDBInformationByHandle
> and create a copy in my Pim_Backup.vol with CeCrateDataBaseWithProps.
> I read all record...for all DB in Pim.vol and write into same DB in
> Pim_Backup.vol...and this work fine....for all DB in pim.vol...but not for
> "Appointments Database".
> When i write records with CeWriteRecordProps in Pim_Backup.vol i receive
> this error "ERROR_ACCESS_DENIED".
>
> Can you help me?
>


From: Peter Foot [MVP] on
Also have you read the notes from CeWriteRecordProps in the SDK
documentation. Make sure you are not writing null to a DB_PROP_NOTNULL field

Peter

--
Peter Foot
Device Application Development MVP
www.peterfoot.net | www.inthehand.com

"Azzi Stefano" <AzziStefano(a)discussions.microsoft.com> wrote in message
news:2A6C9C6A-AC19-4479-9675-ECD70E784BC8(a)microsoft.com...
> Hi, in my application i need to create a backup of pim.vol but i have a
> problem with "Appointemens Database".
>
> for all database in pim.vol i don't have problem, i open original Pim.vol
> and create a new Pim_Backup.vol so i open all database in Pim.vol with
> CeOpenDatabaseInSession, get all information with
> CeGetDBInformationByHandle
> and create a copy in my Pim_Backup.vol with CeCrateDataBaseWithProps.
> I read all record...for all DB in Pim.vol and write into same DB in
> Pim_Backup.vol...and this work fine....for all DB in pim.vol...but not for
> "Appointments Database".
> When i write records with CeWriteRecordProps in Pim_Backup.vol i receive
> this error "ERROR_ACCESS_DENIED".
>
> Can you help me?
>


From: Peter Foot [MVP] on
Also have you read the notes from CeWriteRecordProps in the SDK
documentation. Make sure you are not writing null to a DB_PROP_NOTNULL field

Peter

--
Peter Foot
Device Application Development MVP
www.peterfoot.net | www.inthehand.com

"Azzi Stefano" <AzziStefano(a)discussions.microsoft.com> wrote in message
news:2A6C9C6A-AC19-4479-9675-ECD70E784BC8(a)microsoft.com...
> Hi, in my application i need to create a backup of pim.vol but i have a
> problem with "Appointemens Database".
>
> for all database in pim.vol i don't have problem, i open original Pim.vol
> and create a new Pim_Backup.vol so i open all database in Pim.vol with
> CeOpenDatabaseInSession, get all information with
> CeGetDBInformationByHandle
> and create a copy in my Pim_Backup.vol with CeCrateDataBaseWithProps.
> I read all record...for all DB in Pim.vol and write into same DB in
> Pim_Backup.vol...and this work fine....for all DB in pim.vol...but not for
> "Appointments Database".
> When i write records with CeWriteRecordProps in Pim_Backup.vol i receive
> this error "ERROR_ACCESS_DENIED".
>
> Can you help me?
>


From: Azzi Stefano on
Ahhh.....yes....i lanuch my application from Visual Studio 2005 debugger
.....and pocket pc is connected with activeSync....but my activeSync is not
configured for synchronize with outlook.

I need to stop activeSync?

"Peter Foot [MVP]" wrote:

> Is there any chance your device is syncing with activesync at the time or
> are you in the process of editing an item on the device?
>
> Peter
>
> --
> Peter Foot
> Device Application Development MVP
> www.peterfoot.net | www.inthehand.com
>
> "Azzi Stefano" <AzziStefano(a)discussions.microsoft.com> wrote in message
> news:2A6C9C6A-AC19-4479-9675-ECD70E784BC8(a)microsoft.com...
> > Hi, in my application i need to create a backup of pim.vol but i have a
> > problem with "Appointemens Database".
> >
> > for all database in pim.vol i don't have problem, i open original Pim.vol
> > and create a new Pim_Backup.vol so i open all database in Pim.vol with
> > CeOpenDatabaseInSession, get all information with
> > CeGetDBInformationByHandle
> > and create a copy in my Pim_Backup.vol with CeCrateDataBaseWithProps.
> > I read all record...for all DB in Pim.vol and write into same DB in
> > Pim_Backup.vol...and this work fine....for all DB in pim.vol...but not for
> > "Appointments Database".
> > When i write records with CeWriteRecordProps in Pim_Backup.vol i receive
> > this error "ERROR_ACCESS_DENIED".
> >
> > Can you help me?
> >
>
>
>