01-24-2012 08:27 AM
Dear Support person,
I am using GPIB to control the power supply. I am using Visual Studio 2008 9.0 .When I compiled my code, I am getting 4 Link errors stating : unresolved external symbol _viread in _wmain function, _viwrite in _wmain etc . When I traced back- viread defined to __stdcall. When I tried to trace back __stdcall, Vstudio popped up a message stating- __stdcall is undefined. Please help. OS I am using is Windows 7, 32 bit.
01-24-2012 01:23 PM
Have you actually added a reference to VISA in your project? Installation of VISA should install sample code. Have you taken a look at these?
01-24-2012 10:40 PM
Reference in the sense : i have included visa.h file in my project
01-25-2012 08:14 AM
You have to include the actual library for the linker. The .h file is for the compiler. Have you tried to recompile the examples?
01-25-2012 09:40 AM
Now I included the lib file also. It is working !! Thank you 🙂