From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Reading a tdms file in C++: TDMS C DLL

Hello,

 

I am trying to read a TDMS file in a Visual Studio C++ 2012 program.  I downloaded the DLL from http://ni.intellisurvey.com/run/2007codelicenseagree and attempted to run the example program: readfile.c

 

I got many build errors and I have listed few of them here.

Error 16 error LNK1120: 15 unresolved externals
Error 1 error LNK2019: unresolved external symbol _DDC_CloseFile@4 referenced in function _ReadFile 
Error 11 error LNK2019: unresolved external symbol _DDC_GetChannelGroupProperty@16 referenced in function _ReadGroups 
Error 4 error LNK2019: unresolved external symbol _DDC_GetChannelGroups@12 referenced in function _ReadGroups 

 

 

It would be of great help to me if anyone could guide me to resolve this

 

Regards

Padma Priya

 

0 Kudos
Message 1 of 2
(4,721 Views)

That example code seems to make use of NIs "DIADEM Connectivity Library". Either add that library to MSVC++ project or ( if don't have that library) you have to modifiy the example by removing all usage of these DDC_* functions.

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