Hello, I must give a sample on wednesday to my boss and I don't know how I can do.
I just would like to know all the applications(databases) who are in the Palm. For
this I would like to use an array where I put all informations that I need.
The problem is that my program does not work as i wish and I don't know why.
For example, I have the cardNo and the dbID(I think) but after I can't have the name.
Here is my Program:
DmSearchStateType searchInfo;
UInt16 cardNo=0;
LocalID dbID=0;
Boolean firstTime;
char *Name=NULL;
UInt32 Type;
UInt32 Creator;
UInt32 TotalBytes;
UInt16 TabCardNo[100];
LocalID TabdbID[100];
UInt32 TabType[100];
UInt32 TabCreator[100];
char *TabName[100];
UInt32 TabTotalBytes[100];
firstTime = true;
while (!DmGetNextDatabaseByTypeCreator(firstTime, &searchInfo, NULL,
0, 0, &cardNo, &dbID))
{
TabCardNo[i]=cardNo;
TabdbID[i]=dbID;
DmDatabaseInfo(cardNo,dbID,Name,NULL,NULL,NULL,NULL,
NULL,NULL,NULL,NULL,&Type,&Creator);
TabName[i]=Name;
TabType[i]=Type;
TabCreator[i]=Creator;
DmDatabaseSize(TabCardNo[i],TabdbID[i],0,&TotalBytes,0);
TabTotalBytes[i]=TotalBytes;
firstTime = false;
i++;
}
Thanks in advance.
Helene
____________________________________________________________
Faites un voeu et puis Voila ! www.voila.fr
Avec Voila Mail, consultez vos e-mails sur votre mobile Wap.
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/