That looks like just the thing. Thanks.
Next question: in the docs about writing a notification handler, there's a
sample of how to check the notification type when you get the
sysAppLaunchCmdNotify.
if(cmdPBP->notify->notifyType == sysNotifyTimeChangeEvent) {
When I try and use this in codewarrior I get an error saying that it's not a
struct/union/whatvever. Do I need to cast it? What type would I be casting
it to? Or perhaps I need to declare the struct?
Advice?
Thanks.
-e
Michael Friedrich wrote:
> Hallo,
>
> try:
>
> UInt16 card;
> LocalID databaseId;
>
> Err error = SysCurAppDatabase(&card, &databaseId);
>
>
> Gruesse,
> Michael Friedrich
>
>
> "Eric Blanpied" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
> news:[EMAIL PROTECTED]
>>
>> I'm another new-to-palm coder, looking for a bit of advice. Probably just
>> the first bit...
>>
>> I need to register for the sleep request notification, and I'm wondering
>> what the best way to get my app's cardNo and dbID for SysNotifyRegister.
>>
>> The only thing I've found so far is DmGetNextDatabaseByTypeCreator, but
> that
>> seems a bit generic for this purpose. Is there no more straightforward way
>> to get this data?
>>
>> Thanks in advance.
>>
>> -e
>
>
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/