LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

call a VB DLL in CVI

Hi
 
I want to call a Visual Basic 6 DLL in a CVI project. I tried to use "create ActiveX controller" but when I want to "browse" my DLL on the ActiveX server panel, I have the following error message : in french it's "Erreur lors du chargement de la bibliothèque/DLL du type.", in english I think it's " error during the type library/DLL loading." I don't understand the error.
Please can you help me?
I have the DLL's library and it do the same thing if I try to load the library.
Thanks you in advance for your answer and sorry for my bad english language.
Sam
0 Kudos
Message 1 of 2
(3,221 Views)

Hi Sam,

Refer to this KnowledgeBase How Do I Call a Visual Basic DLL from LabWindows/CVI? for some basic information. The ActiveX controller wizard polls the Windows registry for all registered ActiveX servers. It then uses the type libraries to help determine what functions to create for that DLL. This discussion forum discusses some more detail.  It sounds like you might have a corrupt DLL. Perhaps try unregistering and then re-registering the DLL (Refer to How Do I Manually Register Type Libraries, ActiveX Controls, and ActiveX Servers?)  You could also try loading that DLL into other languages to see if its just CVI that is having difficulties.

Hope this helps!

Best Regards,

Jonathan N.
National Instruments
0 Kudos
Message 2 of 2
(3,170 Views)