Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI
This Document is not yet Rated  Rate this Document

Why Should I Register My Visual Basic 6.0 DLL?

Primary Software: Measurement Studio>>Visual Basic Support
Primary Software Version: 8.1.1
Primary Software Fixed Version: N/A
Secondary Software: LabVIEW Development Systems>>Professional Development System

Problem:
I created a DLL in Visual Basic 6.0 and want to call it in LabVIEW.  Do I need to register the DLL with Windows?  What if I create a LabVIEW DLL to be called in Visual Basic?

Solution:
You need to register ActiveX/COM DLLs that are created in Visual Basic or other text-based programming environments.  Registering with the operating system will tell the machine about the COM objects that are contained in the DLL.

When you use ActiveX in LabVIEW to create a reference to the DLL, the program uses COM to search the registry to find and load the correct file.  If you do not register your DLL, you could get the following error:
Error 429: ActiveX component can't create object

If you are creating a LabVIEW DLL to be called in another programming environment, registering is not necessary.  LabVIEW creates standard DLLs that do not have a COM interface.

Related Links:


Attachments:





Report Date: 09/27/2007
Last Updated: 10/10/2007
Document ID: 4DQLGLYF

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit