> From: [EMAIL PROTECTED]
>
>         //wrdListRscType resource
>         #define idCurrencies 5000
>
>         MemHandle currencyH;
>     UInt16* Currencies;
>         currencyH = DmGetResource(wrdListRscType, idCurrencies);
>     ErrNonFatalDisplayIf(currencyH == NULL, "No currency list source");
>     Currencies = (UInt16*)MemHandleLock(currencyH);
>
> ... I do not know what
> this wrdListRscType resource is or how it is created. When I try
> this code I get 4340 error at the cast assignment to the pointer
> Currencies. Please tell me what to do?

A simple search ("grep" for those who speak *nix) shows that wrdListRscType
is defined in UIResources.h as follows:
        #define wrdListRscType  'wrdl'

In Expense.h they define the id for the Currencies list as follows:
        #define idCurrencies    1900

So, I don't know why you are using 5000. (But, I have never used the
currencies list.)


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