Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

The library files"nidaq32.lib and nidex32.lib" can't be used in C++ Builder 5?

My DAQ board is NI-DAQ 6071E. I developer my application in C++ Builder5.I add these two library files in the project.But When i link,the linker say "[Linker error] 'E:\PROG\LIB\NIDAQ32.LIB' contains invalid OMF record, type 0x21 (possibly COFF)". These two library can used in VC++, Why can't used in C++ Builder? How can i resolve this problem ?
0 Kudos
Message 1 of 4
(4,929 Views)
NI-DAQ does not support Borland Builder C++. This information can be found in the NI-DAQ User Manual under language support. However, NI-DAQ does support Visual C++, Borland C++, Borland Delphi, and Visual Basic.

Regards,
Erin
Message 2 of 4
(4,929 Views)
I have been using Borland C++ Builder 5 with NI-DAQ with no problems for about a year and a half. I am surprised by the "not supported" comment considering the fact that NI-DAQ comes with the Borland library files nidaq32b.lib and nidex32b.lib, which work fine. Include these, not the Microsoft C++ library files nidaq32.lib and nidex32.lib.

When the library files are not available, then you can use the implib.exe program in Borland C++ Builder's bin directory. For example, you would call it like this at the command prompt: implib nidaq32.dll nidaq32b.lib (naturally, nidaq32.dll must be in the current working directory for this example to work).
0 Kudos
Message 3 of 4
(4,929 Views)

Can you tell me what for example you uesed, when you need the librarys nidaq32.lib and nidex32.lib

 

Thanks

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