this is my function now:
Err MostraClip (char *pqa)
{
Err err;
DmSearchStateType searchState;
UInt32 resultP;
UInt16 cardNo;
UInt16 flags = 0;
LocalID dbID;
SysAppLaunchCmdOpenDBType* parametros;
LocalID ClipID;err = DmGetNextDatabaseByTypeCreator (true, &searchState, sysFileTApplication, sysFileCClipper, true, &cardNo, &ClipID);
dbID = DmFindDatabase(0,pqa);
parametros->cardNo = cardNo; parametros->dbID = dbID;
MemPtrSetOwner(parametros, 0); err = SysUIAppSwitch(cardNo,ClipID,sysAppLaunchCmdOpenDB,parametros ); return err; // ErrNone (0) means no error }
i debuged it and it is now passing the SysUIAppSwitch and calling the cliper but somewhere inside the clipper i got a Invalida card # error
i'm using cardNo =0 for my parameter of the pqa file
i'm realy bad at this thing hehe thanx again
_________________________________________________________________
MSN Messenger: converse com os seus amigos online. http://messenger.msn.com.br
-- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
