LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Extraneous formal parameter specification for calling lib function

Solved!
Go to solution

hi, everyone

I want to call the library function in CVI. When i run the project,  it shows some "Extraneous formal parameter specification" errors message.(as below picture)

I have no ideal with this errors, because i call the library function in VC6, it's OK with no problem.

Could someone help me to solve this problem?

Thank you! 

 

my CVI file: http://d.99081.com/a710756/Test3.rar

the CVI errors:

 

  

0 Kudos
Message 1 of 4
(4,244 Views)

Hi,

 

What about:

 

__declspec(dllexport) void Func(void);

 

Jan

 

 

Message 2 of 4
(4,240 Views)
Solution
Accepted by topic author a710756

CVI expects two underscores before declspec (i.e. __declspec, not _declspec). VC allows either _declspec or __declspec. You can either do a search/replace, or add a define like this one to your file:

 

#define _declspec __declspec

 

Mert A.

National Instruments

Message 3 of 4
(4,221 Views)

hi,

 

Thanks for your help, Gaus and Mert A.

Your responses are very helpful for me.

Thank you very much!

 

a710756

0 Kudos
Message 4 of 4
(4,206 Views)