Hi Mr. Yuva Kumar,

What you did is totally wrong...  data2 is never initialized before you use it.
 Read any C book's chaptor about pointers.  Maybe you just forget to understand
the API before you use it?

you need to do the following instead;
============================
UInt8 data2;
.......
err2 = GrfGetMacro(namep,&data2,&len);
============================
data2 is where the return from the function is.

Max
--- Yuva Kumar <[EMAIL PROTECTED]> wrote:

>  for(i=0,indx=11;;indx++,i++)
>  {
>      UInt8 *data2;
             ^^^^^^
......

>   if(err == 0){
>    err2 = GrfGetMacro(namep,data2,&len); }
                              ^^^^^^

__________________________________________________
Do You Yahoo!?
Find the one for you at Yahoo! Personals
http://personals.yahoo.com

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