09-23-2015 10:31 AM
09-24-2015 01:18 PM
Hello,
Have you seen these resources for your specific error/issue?
http://digital.ni.com/public.nsf/allkb/A3663DE39D6A2C5A86257204005C11CA
http://www.ni.com/white-paper/3341/en/#toc9
http://www.ni.com/white-paper/2824/en/
http://forums.ni.com/t5/DIAdem/Linking-error-when-using-C-DLL-for-writing-TDM-files/td-p/1112024
Please let me know if these links are useful.
Thanks,
09-24-2015 01:54 PM
Actually you need two libs to be added
that should resolve everything needed.
If you put the following lines into a batch file stored in the samples folder of the ddc lib you can compile the samples by just dragging the c file on the batch. VS140COMNTools has to be adjusted to the installed Visual studio version.
64 bit Visual Studio 2015 (Visual C 14) example:
@ECHO OFF if EXIST "%VS140COMNTOOLS%\..\..\VC\bin\amd64\vcvars64.bat" ( call "%VS140COMNTOOLS%\..\..\VC\bin\amd64\vcvars64.bat" > NUL ) cl %1 /I "%~dp0..\dev\include" /DLL "%~dp0..\dev\lib\64-bit\msvc64\nilibddc.lib" user32.lib /Fe"%~dp0..\dev\bin\64-bit\%~n1.exe" If NOT %ERRORLEVEL% == 0 ( echo ERRO occured pause goto LEAVE ) :LEAVE
32 bit Visual Studio 2010 (Visual C 10) example:
@ECHO OFF if EXIST "%VS100COMNTOOLS%\vsvars32.bat" ( call "%VS100COMNTOOLS%\vsvars32.bat" ) cl %1 /I "%~dp0..\dev\include" /DLL "%~dp0..\dev\lib\32-bit\msvc\nilibddc.lib" user32.lib /Fe"%~dp0..\dev\bin\32-bit\%~n1.exe" If NOT %ERRORLEVEL% == 0 ( echo ERRO occured pause goto LEAVE ) :LEAVE