Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

Copying .dll and .lib into working directory

Can I make a copies of the nidaq32.dll, nidex32.dll, nidaq32.lib and nidex32.lib into a different directory (working directory) without affecting them in any way?

I cannot access them in their default directories due to the spaces in folder names.

TIA.
0 Kudos
Message 1 of 5
(4,464 Views)
Making copies of the dll's is not really recommended because if you decide to update the driver, the driver installer will only copy the daq dlls into the system32 folder. And if you application is using the dlls from some specific location, you might not get all the updates the new dlls provide.
Is there a reason why you are trying to load the dll by giving a full path? This is normally done by the OS and system files should normally be left in the windows system directory. Why are you running into a problem if the directory names have a space between them?
Bilal Durrani
NI
0 Kudos
Message 2 of 5
(4,456 Views)
Bilal,

Thanks for the response. I need the .dlls to be in my working directory for I get the following error when attempting to execute a program:

A dynamic link library could not be found in the specified path: D:\users\klaus\rothip\simmod\
The dll initialization failed.

Copying the dll into my working directory may solve the problem. I have yet to test.

TIA
0 Kudos
Message 3 of 5
(4,447 Views)
Are you getting the error becuase of the nidaq dll? Or this is because of a custom dll? Where are you getting this error from? Is a particular function returning this error?
Bilal Durrani
NI
0 Kudos
Message 4 of 5
(4,440 Views)
Bilal,

nidaq32.dll and nidex32.dll are working fine. I was able to use VC++ to run both my onboard counters. I linked my code to nidaq32.lib and nidex32.lib.

My problems lie with integration within an environment which you do not support. Instead of load-time linking, I will try run-time linking within this environment.

Thanks again.

Klaus
0 Kudos
Message 5 of 5
(4,428 Views)