I've write this code (pocketstudio) to launch a pdf file and seem to work
fine, I've only
the problem that when I exit from acrobat don't return to my application.
const
acrobatReaderCmdLaunchDB = 32768;
type
AcrobatReaderLaunchInfoType = record
dbCardNo: UInt16;
dbID: LocalID;
end;
oRec := MemPtrNew(SizeOf(AcrobatReaderLaunchInfoType));
oRec^.dbId := DmFindDatabase(0, 'ManualeUtente.pdf');
oRec^.dbCardNo := 0;
MemPtrSetOwner(oRec,0);
LaunchWithCommand(sysFileTApplication, Rsc('ADBE'),
acrobatReaderCmdLaunchDB, oRec);
MemPtrFree(oRec);
"Stefano Coluccia" <[EMAIL PROTECTED]> ha scritto nel messaggio
news:[EMAIL PROTECTED]
> Have you an example how launch a pdf file from my application and at the
end
> come back to my app? The pdf file should be in memory card
>
> I've read that I use SysUIAppSwitch function with acrobatReaderCmdLaunchDB
> command and AcrobatReaderLaunchInfoPtr structure, but I've not understood
> where I find the dbCardNo and dbID
> Have you an example?
>
> #define acrobatReaderCmdLaunchDB 32768
>
> typedef struct {
> UInt16 dbCardNo; // Numero di scheda del database (file PDF)
> LocalID dbID; // ID locale del database (file PDF)
> } AcrobatReaderLaunchInfoType;
>
> typedef AcrobatReaderLaunchInfoType *AcrobatReaderLaunchInfoPtr;
>
> Thanks
>
>
>
>
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/