LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Can't find Secondary DLL error....

Hi guys,
I'm attempting to run a LabVIEW vi that uses a Call Library Function on a different computer than it was created on and I'm getting a "can't find secondary DLL" error when loading the vi. Now the vi works on the computer I developed it on, but it can't find the DLL on the new computer I'm trying to use it on. I read an earlier post regarding this and the suggested solution was to modify the paths that the computer uses. I modified the autoexec.bat to point to c:\windows where I placed the DLL. However, I still get the same error.
So 2 things: is there another place where windows paths are set? More importantly, how can I fix this "can't find secondary DLL" problem? Thanks.

-Mike
0 Kudos
Message 1 of 5
(3,202 Views)
hello mike

This problem appears when your own DLL calls an other DLL. for example acqimage.dll call epix.dll which manages the imaging acquisition board. This last DLL must place in \system32 or \system

best regard

jerome
0 Kudos
Message 2 of 5
(3,202 Views)
Ooooooh,
I see. I've been toying with my DLL and the code I used to generate it and I can't seem to determine what the secondary DLL could possibly be. I used C to develop the DLL. This is my header:

#include "extcode.h"

_declspec (dllexport) long avg_num(float a[], long size, float *avg);

_declspec (dllexport) long avg_num(float a[], long size, float *avg)

Is there a standard LabVIEW or Visual C DLL that's being called to this? Thanks, I appreciate it.

-Mike
0 Kudos
Message 3 of 5
(3,202 Views)
I looked ours up (we were running into the same problem) and found that the Visual C++ documentation lists the DLL's that are used for various functions. For VC++ 5.0 the required DLL's (put them in the system32 directory) are:
Msvbvm50.dll
Msvcirtd.dll
Msvcp50.dll
Msvcp50d.dll
MSvcrtd.dll
sicl32.dll

Notice that most of them start with Msvc. Take a look at your developement system and see what Msvc*.dll files are there. Copy what you need.

Rob
0 Kudos
Message 4 of 5
(3,203 Views)
This sounds like the problem I am having, can someone run through the exact steps that I need to follow. I need to add secondary .dll in an NI device, particulary a PXI-xxxx.

Message Edited by Newguy100 on 08-30-2005 02:53 PM

0 Kudos
Message 5 of 5
(3,109 Views)