extern variable error!!!

2004-08-10 Thread Gláucio Barizon Pançardes
Why when I create an variable as UInt16 nReg; //like a global variable inside of a Main.c archive and when use extern nReg; / to use of this form: recH=DmNewRecord(dbCl, &nReg, tam); // in another Archive, show this erro Error : illegal implicit conversion from 'int *' to 'unsigned short *' DB

re: extern variable error!!!

2004-08-10 Thread Josh L
You wrote: >Why when I create an variable as UInt16 nReg; //like a global >variable >inside of a Main.c archive and when use extern nReg; / to use of >this form: ... You declared extern nReg; incorrectly. It should be: extern UInt16 nReg; Josh -- For information on using the Palm Developer For

Re: extern variable error!!!

2004-08-11 Thread Gláucio Barizon Pançardes
Thanks Josh!! Is that!!! "Josh L" <[EMAIL PROTECTED]> escreveu na mensagem news:[EMAIL PROTECTED] > You wrote: > >Why when I create an variable as UInt16 nReg; //like a global >variable > >inside of a Main.c archive and when use extern nReg; / to use of >this form: > ... > > You declared extern