I have an RS170 camera plugged into a PCI1410 card. When using MAX, it works properly.
When compiling this example for grabbing an image, all works normally.
C:\Documents and Settings\All Users\Documents\National Instruments\NI-IMAQ\Examples\MSVC\Grab\LL Grab
When I try to link my program in Visual Studio 2008, it can't fing the external references:
1>1410_Functions.obj : error LNK2019: unresolved external symbol __imp__imgClose@8 referenced in function "unsigned int __cdecl ThreadPCI1410(void *)" (?ThreadPCI1410@@YAIPAX@Z)
1>NI_IMAQ_interface.obj : error LNK2001: unresolved external symbol __imp__imgClose@8
1>1410_Functions.obj : error LNK2019: unresolved external symbol __imp__imgPlot@36 referenced in function "unsigned int __cdecl ThreadPCI1410(void *)" (?ThreadPCI1410@@YAIPAX@Z)
1>NI_IMAQ_interface.obj : error LNK2001: unresolved external symbol __imp__imgPlot@36
and so on.
Here are my settings
For the example:
Project properties; Configuration; C/C++; Command Line:
/Od /I "C:\Program Files\National Instruments\Shared\ExternalCompilerSupport\C\\Include" /D "_DEBUG" /D "WIN32" /D "_WINDOWS" /D "_CRT_SECURE_NO_DEPRECATE" /D "_VC80_UPGRADE=0x0600" /Gm /EHsc /MTd /Fp".\Win32\Debug/hlgrab.pch" /Fo".\Win32\Debug/" /Fd".\Win32\Debug/" /FR".\Win32\Debug\\" /W3 /nologo /c /ZI /TP /errorReport:prompt
Project properties; Configuration; Linker; Command Line:
/OUT:".\Win32\Debug/hlgrab.exe" /INCREMENTAL /NOLOGO /LIBPATH:"C:\Program Files\National Instruments\Shared\ExternalCompilerSupport\C\\Lib32\MSVC" /MANIFEST /MANIFESTFILE:".\Win32\Debug\hlgrab.exe.intermediate.manifest" /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /DEBUG /PDB:".\Win32\Debug/hlgrab.pdb" /SUBSYSTEM:WINDOWS /DYNAMICBASE:NO /MACHINE:X86 /ERRORREPORT:PROMPT winmm.lib imaq.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.libmy project:
For my project:
Project properties; Configuration; C/C++; Command Line:
/Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_VC80_UPGRADE=0x0600" /D "_MBCS" /Gm /EHsc /RTC1 /MTd /Yu"stdafx.h" /Fp".\Debug/MyProject.pch" /FAs /Fa".\Debug/" /Fo".\Debug/" /Fd".\Debug/" /FR".\Debug\\" /W3 /nologo /c /ZI /TP /errorReport:prompt
Project properties; Configuration; Linker; Command Line:
/OUT:".\Debug/MyProject.exe" /INCREMENTAL /NOLOGO /MANIFEST /MANIFESTFILE:".\Debug\MyProject.exe.intermediate.manifest" /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /DELAYLOAD:"OleAcc.dll" /DEBUG /PDB:".\Debug/MyProject.pdb" /MAP:"MyProject.map" /SUBSYSTEM:WINDOWS /DYNAMICBASE:NO /MACHINE:X86 /ERRORREPORT:PROMPT DelayImp.lib
In Tools;Options;Projects and Solutions; VC++ Directories; include files and library files, I have all the necessary paths.
What could be wrong?