I'm already working on the Compatibility Guide... Thanks a lot!

Regarding the second question... something's still not clear... I know the
answer's easy, but I'm just dead lost..

I declare the function
    Boolean FormCheckResponseFunc(Int16 button, Char *attempt);

Upon some event, I call the following function, where strInput is a
char[20]:

    FrmCustomResponseAlert(CustomAlert, "Type your password:", "",
    "",     strInput, StrLen(strInput), FormCheckResponseFunc);

The emulator shuts down, fatal error, and the only choice I've got is to
close POSE. Where's the mistake?

Thank you, very much,

Nicolas Zeitlin

-----Original Message-----
From: Richard Burmeister <[EMAIL PROTECTED]>
To: Palm Developer Forum <[EMAIL PROTECTED]>
Date: Wednesday, February 14, 2001 1:17 PM
Subject: RE: 2 stupid questions..... again


>> From: Nicolás Zeitlin
>>
>> 1) How can I tell what PDA the app is running on?
>
>Normally, you don't.  Instead, you look to see what features the PDA
>supports and don't call any it doesn't support.  (See the Compatibility
>Guide in the docs for info on this.)
>
>>
>> 2) Can anyone help me on how to use FrmCustomResponseAlert()?
>> Specifically,
>> what I * don't * understand is how to handle the callback function. How
>> should I use/fill/declare it? If you can link me to an example,
>> or anything
>> alike, I'll be more than thankful....
>
>The callback function is a function you define, or pass in NULL if you
don't
>want to use a callback.  The OS will call your callback after one of the
>alert buttons is tapped and your callback function returns true if you want
>to close the alert and false if you don't like what they entered.  The docs
>give the prototype as:
>
>Boolean FormCheckResponseFuncType( Int16 button, Char *attempt );
>
>So your function can check to see which button they pressed and what string
>they entered and then decide if that is OK before closing the alert.
>
>
>
>--
>For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/tech/support/forums/


-- 
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