First, usually you need a "break" after each "case".

Second, read the API reference comes with the SDK for the functions you don't
know.

Max
--- Karlheinz Toni <[EMAIL PROTECTED]> wrote:
> UInt32 bS; //Global
> 
> 
> 
> //In StartApp function somewhere...
> 
> UInt32 nD; //Local
> 
> WinScreenMode(winScreenModeGetSupportedDepths,NULL,NULL,&nD,NULL);
> 
> switch(nD) {
> 
>     case 0x0B:
> 
>         bS=12800;
> 
>     default:
> 
>         bS=25600;
> 
> }
> 
> 
> Is it right to do so in the code or should it rather be
> 
> //In StartApp function somewhere...
> 
> UInt32 nD =
> WinScreenMode(winScreenModeGetSupportedDepths,NULL,NULL,&nD,NULL);
> 
> switch(nD) {
> 
>     case 0x0B:
> 
>         bS=12800;
> 
>     default:
> 
>         bS=25600;
> 
> }
> 
> 
> 
> Because I don't really understand the switch(nD) command. If I do not assign
> the nD Variable anywhere, I cannot switch. Is there any sense doing:
> 
> 
> UInt32 nD =
> WinScreenMode(winScreenModeGetSupportedDepths,NULL,NULL,&nD,NULL);
> 
> 
> 
> I don't know the WinScreenMode function. Can anyone help me?
> 
> Thx
> Charly
> 
> 
> 
> -- 
> For information on using the Palm Developer Forums, or to unsubscribe, please
> see http://www.palmos.com/dev/tech/support/forums/


__________________________________________________
Do You Yahoo!?
Send FREE video emails in Yahoo! Mail!
http://promo.yahoo.com/videomail/

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