02-18-2009 12:23 AM
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:
Solved! Go to Solution.
02-18-2009 04:17 AM
Hi,
What about:
__declspec(dllexport) void Func(void);
Jan
02-18-2009 10:57 AM
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
02-18-2009 06:18 PM
hi,
Thanks for your help, Gaus and Mert A.
Your responses are very helpful for me.
Thank you very much!
a710756