How can you delete an application through code? I've tried this many
different ways and I've included some code that I was trying to use....  but
it doesn't anywhere near work... Does anyone know how to do this?




static void DelProgram(UInt32 DBType, UInt32 CreatorID, CharPtr DelName)
{
 Char    Name[32] = "";
 UInt16    Card;
 LocalID    dbID;
 DmSearchStateType SearchState;
 Err     error;

 error = DmGetNextDatabaseByTypeCreator(true, &SearchState, DBType,
CreatorID, true, &Card, &dbID);
 if (!error) {
  DmDatabaseInfo(Card, dbID, &Name[0], NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL);
  if (!StrCompare(DelName, Name))
   DmDeleteDatabase(Card, dbID);
 }
}



I know for a fact that the DelName matches Name in the case that I'm using
it. And the DmDeleteDatabase line gets excuted but nothing happens......



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to