Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

Can anyone tell me how to compile and run NIDAQ examples with Microsoft visual studio.net?

I am trying to use NIDAQ examples to run under Microsoft visual C++.NET. What other files I need to include to complie the code to run successfully?
0 Kudos
Message 1 of 4
(5,111 Views)
You should be able to open the dsw/dsp files in VC.NET, convert the projects to VC.NET sln/vcproj files, and run the examples. What problems are you seeing when you try to compile them in VC.NET?

- Elton
0 Kudos
Message 2 of 4
(5,110 Views)
I am having a (possibly) similar problem. I opened one of the examples in VS .NET. In the solution properties, I added the path to the include directory (in the C/C++ tab->general tab) and in the fully specified name of the link library (in the Linker->command line tab). I have set Code Generation to multi-threaded DLL debug.

When I compile the program, I get the following:

VC_AcqIntClkDigRef fatal error LNK1104: cannot open file 'nidaqmx.lib'

I can assure you that the path is typed correctly as I cut-n-pasted it from my explorer window. I have enclosed the file name in double quotes.

While I have you attention: is there support for VB.NET along similar lines to the support for ANSI C (i.e., simple header files and link libraries?)

Thanks!
0 Kudos
Message 3 of 4
(5,110 Views)
I figured this out - the problem was that when the project file was converted, the path to nidaqmx.lib was "lost". The linker oculd not find the file, because it had referenced it in the Linker->Input->Additional Dependencies.
0 Kudos
Message 4 of 4
(5,110 Views)