Very frustrating.
Now; such a simple fll (prints out var type passed) is returning garbage.
I think I need to take a break...
the output is:
VAL[]
Var: [
so I must have screwed somethign up with mixing/matching libraries or header files or something...
#include "pro_ext.h"
void FAR test(ParamBlk FAR *parm ) {
char test[100];
_PutStr("VAL[");
_PutValue(&parm->p[0].val);
_PutStr("]\n");
sprintf(test,"Var: [%c]\n",parm->p[0].val.ev_type);
_PutStr(test);
}
FoxInfo myFoxInfo[] = {
{ "test", (FPFI) test, 1, "C"}
};
FoxTable _FoxTable = {
(FoxTable FAR *) 0,
sizeof( myFoxInfo) / sizeof( FoxInfo ),
myFoxInfo
};
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement