![]() |
sponsored links |
|
|
sponsored links
|
|
1
2nd May 10:50
External User
Posts: 1
|
I'm working on a pretty basic program where I want to get the contacts
out of the contacts database using RAPI. My app works fine for all standard Pocket PC devices, just not the smartphone. So, as far as I understand it, I need to do: CeMountDBVol CeOpenDatabaseEx CeUnmountDBVol Instead of simply CeOpenDatabase. So, I'm trying to mount the persistent store's database using: CEGUID vol; if (CeMountDBVol(&vol, L"\\IPSM\\mxip_initdb.vol", OPEN_ALWAYS )) { dc.TextOut( 0, y, "Mount volume succeeded"); } else { dc.TextOut( 0, y, "Mount volume failed"); sprintf(text,"Last error: %d", CeGetLastError()); y+=VERTICAL_OFFSET; dc.TextOut( 0, y, text); } Yes, I realize that I shouldn't hard code IPSM, but for now I'm doing it for testing; I'll switch to getting the name of say the personal folder and strip everything out. I'm receiving an ERROR_ACCESS_DENIED and am not sure why. What am I doing wrong? If I use an iPAQ 5550 and change IPSM to Storage Card, it works and creates the database if needed. Any assistance would be much appreciated. Thanks. -- Scott Gruby scott-news@gruby.com |
|
|