Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

using NI dlls in borland c++

I have a NI pci-6503 card and i want to control it using Borland C++ Builder 6, this because the other part of the project is also done in Borland C++.
I tried to compile the DOonePort.C from the ni-daq\examples directory. I used implib.exe from borland to create the correct library files from the nidex32.dll and nidaq32.dll files and added them to my project. The project compiles succesfull, but when it starts it comes up with the following error: Application Failed to Initialize properly (0xc0000142). Using the library files for Borland i found in the support section of the site gives the same errors.
After commenting out a few functions i found out both DIG_Out_Prt and DIG_Prt_Config functions generate that error, the other functions in the example source seems to work ok. So it must be a problem with the library or dll file i guess.
I also tried to compile the same sourcecode in MS Visual C++ and it works fine without any problems.

Anyone got this working in Borland c++ or knows what im doing wrong?

Thanks.
Message 1 of 1
(3,586 Views)