01-14-2008 08:17 PM
01-15-2008 01:45 PM
Hi Greg,
It is possible to use Traditional DAQ with Microsoft Foundation Classes (MFC). The Knowledge Base Document 317742FQ: Programming NI-DAQ in Visual C++ .NET is a great resource on this topic.
To solve your link error, I would try adding the Traditional DAQ libraries to the Linker Properties of the project. These libraries can be found in the default location of C:\Program Files\National Instruments\NI-DAQ\Lib.
If this does not resolve the issue, could you post back with the specific error numbers and text of the link error you receive? Best of luck.
Mallori M.
01-15-2008 04:07 PM
I'm using visual c++ 6.0. I made sure that the directories you mention were set up in the directories tab under options for the library and include files. I put "#include nidaq.h" and "#include nidaqex.h" in my *Dlg.cpp file, as well as calling DIG_Prt_Config and DIG_Out_Port in the OnInitDialog function. When I compile and link I get the error messages:
error: LNK2001: unresolved external symbol _DIG_Out_Port@12
error: LNK2001: unresolved external symbol _DIG_Prt_Config@16
Thanks for the help,
Greg
01-15-2008 07:19 PM