Hi there,
Does anybody know how to return an object from a FLL? If so, please code. I tried this but doesn't work:
A team is only pieces that you exchange until you finish the work, it is efficient, it works.
Does anybody know how to return an object from a FLL? If so, please code. I tried this but doesn't work:
Code:
#include <stdio.h>
#include "pro_ext.h"
typedef struct {
[indent]char *name;[/indent]
[indent]int age;[/indent]
} person;
void ReturningObject(ParamBlk *parm)
{
[indent]person p1;[/indent]
[indent]p1.age = 34;[/indent]
[indent]Value *val;[/indent]
[indent]val->ev_type = 'O';[/indent]
[indent]val->ev_object = (long)p1;//This doesnt work :([/indent]
[indent]_RetVal(val);[/indent]
}
FoxInfo myFoxInfo[] =
{
[indent]{"TESTOBJECT", (FPFI) ReturningObject, 0, ""}[/indent]
};
extern "C" {
[indent]FoxTable _FoxTable = {[/indent]
[indent](FoxTable *)0, sizeof(myFoxInfo)/sizeof(FoxInfo), myFoxInfo[/indent]
[indent]};[/indent]
}
A team is only pieces that you exchange until you finish the work, it is efficient, it works.