I am trying to make my application run properly on an expansion card. I am
trying to use the VFSImportDatabaseFromFile function to load my innoflights.prc
file. But I keep getting file not found. Do I have my path correct or am I
doing something wrong?
Below is a sample of the code.
Thanks
Jill
// Try to find in in main
dbID=DmFindDatabase (0, cnstLaunchName); // Find the application to launch
if (dbID == 0) // try vfs
{
// get volume
while (volIterator != vfsIteratorStop)
{
Err1 = VFSVolumeEnumerate(&volRefNum, &volIterator);
if (Err1 == errNone)
{
Err1 = VFSImportDatabaseFromFile (volRefNum,
"Palm\\Launcher\\innoflights.prc", 0, &dbID);
if (Err1)
{ ErrAlertCustom(Err1,NULL,NULL,NULL);
}
else {
FrmCustomAlert(1000,"Error Finding volumn","","");}
}
}
}
--
For information on using the PalmSource Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/