Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

How to make a program for USB-6008 in Visual Studio C++ MFC without Measurement Studio?

 
I need some help to create a program for USB-6008 in Visual Studio C++ MFC. I have run the exampels file for ANSI C and that is working. But when I try to get USB-6008 to work in Visual Studio C++ MFC i get a lot of trouble.
 
I can´t use any of the functions i NIDAQmx.h then I only get this message:

MFC VOLT MESSURINGView.obj : error LNK2001: unresolved external symbol _DAQmxCreateTask@8

Is there anyone who can help me with this? Or is it impossible to use USB-6008 inVisual Studio C++ MFC?
 
If it possible please add some example code to!
 
Best Regards Anders! 
0 Kudos
Message 1 of 4
(3,625 Views)
Hi Anders,

It sounds like you need to configure your Visual Studio C++ project to link your application against NIDAQmx.lib.  This library provides the entry points for each of the DAQmx C API calls.  If you do not link your application against the library, you will get errors like you describe in your post.

Hope this helps.
Aaron
0 Kudos
Message 2 of 4
(3,610 Views)
Thank you very much!
That was exactly the litlle thing I had forgotten!
 
 
 

Message Edited by olssoninc on 10-16-2006 12:26 AM

0 Kudos
Message 3 of 4
(3,598 Views)

Hi,

 

Do you have any example code of program for USB- 6008 in Visual Studio C++ MFC.

 

I need some example to program for USB 6221.

 

Thank you very much!

0 Kudos
Message 4 of 4
(2,665 Views)