06-22-2016 10:46 PM
Hello!
Thank you!
06-23-2016 02:29 AM
06-23-2016 03:06 AM
06-23-2016 05:32 AM - edited 06-23-2016 05:34 AM
Well, I'm not sure about the current state of affairs with Embarcadero but in the past when it was still called Borland C++, the issue was simply in the OMF library format they use. Since the NI-RIO C API is really inside of DLLs, the only real problem you have is that the provided import libraries for those DLLs are in Visual C COFF format.
Now, I haven't accessed the NI-RIO C API so far so I'm not sure how feasable that is, but in the past Borland C did not only have the COFF2OMF tool to convert those Visual C import libraries to their own format but they also had a tool that could generate a native import library for a DLL by simply pointing it at the DLL and the according header file. If that fails you could still write your own import library in C which uses LoadLibrary() and GetProcAddress() to compile it with Embarcadero. With a little bit of smart macro magic and some scripting environment like Python or TCL (or even a LabVIEW VI) the generation of that C code could be even mostly automated.
07-03-2016 03:11 AM
Hello Rolf,
Thanks very much for your response. I will look for the tool you mentioned. It is encouraging to know that the DLL approach we have had to adopt has promise.
Cheers,
Chammika