> Err is the data type returned from
> RomVersionCompatible. It's a signed 16 bit integer.
> Just #include <Common.h> and you'll be fine.

!!
I thought it was because AppLaunchWithCommand is
actually a macro which refers to a variable
(not the type "Err") err. So in my case, I 
just added a variable "Err err;" inside the 
function. But this is not required if 
you use 3.0 SDK ( I mean the include file from
3.0 SDK). The 6th line was missing in 2.0 SDK.

#define AppLaunchWithCommand(appCreator, appCommand,
appCommandParams) \
{ \
        UInt                                    cardNo; \
        LocalID                         dbID; \
        DmSearchStateType       searchState; \
        Err err; \
        DmGetNextDatabaseByTypeCreator(true, &searchState,
sysFileTApplication, \
                appCreator, true,       &cardNo, &dbID); \
        ErrNonFatalDisplayIf(!dbID, "Could not find app"); \
        if (dbID) { \
                err = SysUIAppSwitch(cardNo, dbID, appCommand,
appCommandParams); \
                ErrNonFatalDisplayIf(err, "Could not launch app"); \
                } \
        }


> 
> Regards,
> 
> Jim Schram
> 3Com/Palm Computing
> Partner Engineering
> 
> 

===
Ion Popescu
[EMAIL PROTECTED]

_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com

Reply via email to