07-16-2009 01:31 AM
hi, everyone
I want to control my motion card using dll in CVI,
But when I compile, it shows error:
"PS400.h"(520, 47) Illegal Initialization for parameter 'pAvailCards'.
short __stdcall ps400_scan
(
short* pCardNum, /* pointer to available PISO-PS400 cards */
BYTE* pAvailCards = NULL /* pointer to available cards array */ <------error line
);
Could someone help me to slove this problem?
Thanks.
PS:I have include "windows.h"
SCC
Solved! Go to Solution.
07-16-2009 03:06 AM
Just remove the "= NULL" from the prototype definition. This is a C++ feature which is not supported in CVI's ANSI C compiler.
JR
07-16-2009 03:16 AM
hi, JR
Thank you for your response.