LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Missing prototype function

I am using Labwindows/CVI 5.5. The code works with Visual c++ but it does not work here.
My code:

typedef struct testfunc
{
int para;
int (*stepfunc)();
}TESTFUNC;

int EXE_test(TESTFUNC *pfn)
{
int result;
if(pfn->para==VOID)
result=(*pfn->stepfunc)();
else result=(*pfn->stepfunc)(pfn->para);
}
Compiler of CVI says missing protype function at (*pfn->stepfunc).
Please, help.
0 Kudos
Message 1 of 2
(3,049 Views)
Hi I'm not sure but I thing you need to replace

int (*stepfunc)(); with

int (*stepfunc)(void);

I did encounter sommething similar... when library build with VC++ you don't need to put "void" in the function declaration when there is non parameters... but in CVI we need to...

I hope it is the right answer...

Best Regards

Steph
0 Kudos
Message 2 of 2
(3,049 Views)