Why Should I Register My Visual Basic 6.0 DLL?Primary Software: Measurement Studio>>Visual Basic SupportPrimary Software Version: 8.1.1 Primary Software Fixed Version: N/A Secondary Software: LabVIEW Development Systems>>LabVIEW 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 6.0. 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 objectIf 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. An ActiveX/COM DLL can be registered using Regsvr32. For more information about how to register a DLL, see the MSDN entry for Regsvr32 Tool. Related Links: MSDN Using Windows Automotive Regsvr32 Tool Attachments:
Report Date: 09/27/2007 Last Updated: 08/11/2008 Document ID: 4DQLGLYF |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
