I'm currently attempting to finish up on a palm application I've been
working on and ran into some difficulty with the database. When i attempt
to hotsync with my conduit that I created, if there is no database currently
on the palm for my application, the conduit does not sucessfully create a
new one, as it is supposed to. I used the SyncCreateDB call, however it
does not seem to be working properly. I have a feeling it may have
something to do with the parameters passed, but they seem to be all in
order, any assistance would be greatly appreciated. here is some of the
code:
if ((err = SyncOpenDB(FLDBName, 0, rHandle, eDbWrite | eDbRead
| eDbShowSecret)) != 0) {
LogAddEntry("SyncOpenDB failed", slWarning, false);
if (err == SYNCERR_FILE_NOT_FOUND)
{
CDbCreateDB dataInfo;
memset(&dataInfo, 0, sizeof(dataInfo));
dataInfo.m_Creator = fireCreator;
dataInfo.m_Flags = eRecord;
dataInfo.m_CardNo = 0;
dataInfo.m_Type = FLDBType;
strcpy(dataInfo.m_Name, FLDBName);
if ((err = SyncCreateDB(dataInfo)) != 0)
{
LogAddEntry("SyncCreateDB failed", slWarning, false);
goto exit;
}
rHandle = dataInfo.m_FileHandle;
} else
goto exit;
}
Thx, again!!
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/