
22 Appendix A2 Exported Function Summary
A2.2 Ox function summary
FOxCallBack, FOxCallBackMember
bool FOxCallBack(OxVALUE *pvFunc, OxVALUE *rtn, OxVALUE *pv,
int cArg);
bool FOxCallBackMember(OxVALUE *pvClass, const char *sMember,
OxVALUE *rtn, OxVALUE *pv, int cArg);
pvFunc in: the function to call, must be of type OX
FUNCTION or
OX
INTFUNC
pvClass in: the object from which to call a member, must be of type
OX
CLASS
sMember in: name of the member function
rtn out: receives the return value of the function call
pv in: the arguments of pvFunc
cArg in: number of elements in pv
Return value
TRUE if the function is called successfully, FALSE otherwise.
Description
Calls an Ox function from C.
If the returned value rtn is not passed back to Ox, call OxFreeByValue(rtn)
to free it.
FOxCreateObject
bool FOxCreateObject(const char *sClass, OxVALUE *rtn,
OxVALUE *pv, int cArg);
sClass in: name of class
rtn in: pointer to Ox
VALUE
out: receives the created object
pv in: the arguments for the constructor
cArg in: number of elements in pv
pvClass in: the object from which to delete, previously created with
FOxCreateObject
Return value
Returns TRUE if the function is called successfully, FALSE otherwise.
Description
FOxCreateObject creates an object of the named class which can be used from
C; the constructor will be called by this function. Use OxDeleteObject to delete
the object.
FOxGetDataMember
Komentarze do niniejszej Instrukcji