Hello
I am trying to get a dll running on a CompactRIO 9004 using Labview8.5 developer's suite. The dll works fine when I run the VI on Windows, but when I copy the vi (called host.vi) to the CRIO target and try to run it I get the following message in the deployment status box:
Deploying host.lvproj
Deploying Jag1
LabVIEW: Failed to load shared library c:\ni-rt\startup\data\extractor.dll on RT target device.
(successfully deployed target settings)
Deploying dllclone.vi (3.20 K)
Deploying RT board LEDs.vi (11.66 K)
Deploying RT LEDs.vi (7.05 K)
Deploying host.vi
Failed to download host.vi
LabVIEW: Failed to load shared library e.dll:getaddress:C on RT target device.
Having read some other posts on the forum, I am working from a folder called ni-rt\startup to mimic the CRIO's directory structure when configuring the call library function node and the dll is called e.dll to be certain of being filename compatible and the function being called is 'getaddress'. The dllclone.vi is a vi that performs exactly the same operation as the dll, to get an idea of speed difference. Jag1 is the name of the CRIO.
I have run 'DLL Checker 8.2.exe' and it gives

two bad imports: one in kernel32.dll (GlobalMemoryStatus) and one in user32.dll (EnumThreadWindows). I am using Borland Builder 5 as the compiler and even running this from the command line pointing explicitly at the lib files in 'cintools' and making the dll 386 compatible gives this result. Would changing to MSVC++ make a difference?
I have been running the CompactRIO successfully up till now. Can anyone help with this?
Thanks,
Nathan