Codewarrior says illegal implicit conversion from "unsigned short *" to
"unsigned short" in the DatabaseInfo call.
API docs says the return values you don't need can pass NULL.
Can anybody see the error here:
Thanks
void ejecutar(void){
MemHandle h;
Err err; DmSearchStateType infop;
LocalID id; UInt16 card;
Char* name;
err=DmGetNextDatabaseByTypeCreator(true,&infop,0,0,true,&card,&id);
if (!err){
h=MemHandleNew(25); name=(char *) MemHandleLock(h);
err=DmDatabaseInfo(&card,&id,name,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NU
LL,NULL);
showstr(0,10,name);
MemHandleUnlock(h);MemHandleFree(h);}
else showstr(0,150,"Error");
}
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/