LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to load DLL

I have an .exe prj residing in different directory from a DLL prj that I am trying to call. I keep getting build error: Unable To Locate Component... *.dll not found. In my .exe prj I have added the *dll.h file and the *.lib file as well from the directory from which dll resides. What's wrong??
0 Kudos
Message 1 of 3
(3,164 Views)
Hello

You need to verify that your dll is in one of the following folders.

-The directory where the executable module for the current process is located.
-The current directory.
-The Windows system directory. The GetSystemDirectory function retrieves the path of this directory.
-The Windows directory. The GetWindowsDirectory function retrieves the path of this directory.
-The directories listed in the PATH environment variable.


Windows is responsible for loading the dll for the exe at run-time. You will get a missing dll error when you attempt to run the exe and Windows is unable to find the dll it requires. A missing dll would not cause an error during compile time

I hope this helps

Bilal Durrani
NI
Bilal Durrani
NI
0 Kudos
Message 2 of 3
(3,164 Views)

In my case I don't need any dll's. I'm just trying to debug a simple tester c file. It can't locate ".dll" (nothing before the period).

 

Why is it looking for a blank dll?

 

Could and would reinstall the driver for the instrument I'm writing the module for, but there is no driver.

0 Kudos
Message 3 of 3
(2,563 Views)