LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

illegal initialization for parameter

Solved!
Go to solution

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

0 Kudos
Message 1 of 3
(3,543 Views)
Solution
Accepted by topic author a710756

Just remove the "= NULL" from the prototype definition. This is a C++ feature which is not supported in CVI's ANSI C compiler.

 

JR

0 Kudos
Message 2 of 3
(3,535 Views)

hi, JR

 

Thank you for your response.

 

0 Kudos
Message 3 of 3
(3,530 Views)