Forum Italiano sui Prodotti NI

annulla
Visualizzazione dei risultati per 
Cerca invece 
Intendevi dire: 

Problem with a DLL for VisualBasic

Hello,
    I have generated a DLL for VisualBasic using LabWindowsCVI v.7.1. The DLL work correctly on the PC where I have installed CVI and VisualBasic 6.0. The problem is when I move the DLL on the PC for the application, where I have installed only  VisualBasic 6.0:
 
VisualBasic is not able to see (and of course to use) the DLL !  I have copy the DLL in C:\WINDOWS\SYSTEM32 directory but VB generate an runtime error 48: impossible to find FILENAME.DLL.
 
I have try to use the REGSVR command, but I have the error "LoadLibrary ("FILENAME.DLL") failed. GetLastError returns 0x0000001f".
 
The O.S. of the two PC is WindowsXP Prof. SP2.  I attach the DLL and the VB project for test.
 
                                                                                                               ThankYou
0 Kudos
Messaggio 1 di 2
4.745Visualizzazioni
There's got to be something not right with the DLL you generated. It is appearently not possible to register it on Windows. This is what is causing VB not to find it.
I tried to register it on my machine in 2 different places but you can see attached what the result was
 
 
 

AlessioD
National Instruments

PS: Il forum Italiano e' stato creato con lo scopo di agevolare la comunicazione in lingua italiana. Sentitevi liberi di postare in Italiano!

0 Kudos
Messaggio 2 di 2
4.736Visualizzazioni