I'm trying create my own lib. But, when I compile a program appear the
following error message:

Error: cannot convert
'int' to 'struct *const'

When I declare function and program together they work fine. how can I
fix?

-------------------library------------------------------
MyLib.h
extern void *GetObj(Word objectID);

MyLib.C
void *GetObj(Word objectID)
{
 FormPtr frmP;
 frmP = FrmGetActiveForm();
 return (FrmGetObjectPtr(frmP, FrmGetObjectIndex(frmP, objectID)));
}
--------------------------------------------------------


program.c
StrCopy(sObs, FldGetTextPtr(GetObj(ShowPedObsField)));

TIA

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