LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

dll question...

I need to use a inhouse designed and made instrument in a LabView platform but the driver was written in VB 6.0 so I build a dll using VB to allow LabView to communicate with the instrument. I succeeded but the problem is whenever I exit my test application and load it back in I got an error that say a dll file is not found. This dll file is called by the dll I built and it was written in C language. I had to set the automation refnum again just to get rid of this error. Any help is appreciated.
 
Thanks.
0 Kudos
Message 1 of 5
(3,020 Views)
Did you register the DLL with the Operating System ?
 
Ankita
0 Kudos
Message 2 of 5
(2,998 Views)

Yes, I did. I use regsvr32 to register the dll.

I thought perhaps the OS registration had some problem so I even wrote a wrapper in VB .Net to make use of its type library registration to run my application but the same problem occurred.

 

0 Kudos
Message 3 of 5
(2,990 Views)
Go to www.sysinternals.com and download a tool called Filemon. When you run this, set the filter to the name of your EXE (you're VB.NET test app would be best - generates less entries than LV will) and then launch the program. Filemon shows all the file I/O access (including loading DLLs) - so you might see what command is failing.
0 Kudos
Message 4 of 5
(2,977 Views)
Thanks for your help. I found out the problem. LV was looking for the dll in window system folder.
0 Kudos
Message 5 of 5
(2,962 Views)