LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Run-time error: External process (dll) fails to load properly with CVI

I'm trying to utilize a custom dll and have the .lib and .h files that go with it.    The header file was modified to define the following:
    #define IRDA_COMM_API extern "C" __declspec(dllimport)
 
The .lib and .h files are included in the project file.
 
The CVI 7.1 application compiles with no errors,  but at runtime (both in debug & executable modes) I get the following fatal error:
 
"FATAL RUN-TIME ERROR: Unknown source position, thread id 0x0000503C:  The external process failied to load properly.  Verify that all DLLs used by the debugee were installed in the path".
 
The dll itself has been manually placed in the (1) project directory and (2) C:\Windows\system32 directories,  with no change in behavior.
 
 
 
0 Kudos
Message 1 of 3
(3,289 Views)
Might it be that your custom DLL depends on another DLL ? Run Dependency Walker ( http://www.dependencywalker.com/ ) on that dll to check that.
Message 2 of 3
(3,273 Views)

Marcus,

Thanks for the response and tool tip.  You were right;  the missing, referenced dll is msvcr80d.dll.   This is not on my system.

Howard
0 Kudos
Message 3 of 3
(3,259 Views)