erikg Posted July 12, 2006 Report Share Posted July 12, 2006 I have an a LabVIEW application that I would like to build into a dll. The problem comes in with the binding to an ActiveX object - MultiSim. I am calling MultSim as an ActiveX object in the code, which works fine in the developemnt system. When I build a dll and run it, it crashes on the automation open. To connect to MultiSIM as an ActiveX object, I needed to browse to the multisim.tlb file. Perhaps I need to register the object? Thanks! -erik PS - LabVIEW 7.1.1 Quote Link to comment
Mike Ashe Posted July 12, 2006 Report Share Posted July 12, 2006 I have an a LabVIEW application that I would like to build into a dll. Theproblem comes in with the binding to an ActiveX object - MultiSim. I am calling MultSim as an ActiveX object in the code, which works fine in the developemnt system. When I build a dll and run it, it crashes on the automation open. To connect to MultiSIM as an ActiveX object, I needed to browse to the multisim.tlb file. Perhaps I need to register the object? Thanks! -erik PS - LabVIEW 7.1.1 Possibly, try the following: To register DLLs or OCXs: On the Taskbar, select Start > Run In the Open field, type regsvr32 "<path>\NameOfFile.extension", where <path> is the directory where the file is located on your computer and NameOfFile.extension is the name of the file. For example: regsvr32 "C:\Windows\System32\Mydll.dll" Press Enter. If the file registers successfully, you'll see a message telling you it succceeded: To register an executable, or .exe, file: On the Taskbar, select Start > Run In the Open field, type "<path>\NameOfFile.exe" /REGSERVER, where <path> is the directory where the file is located on your computer and NameOfFile.exe is the name of the file. For example: "C:\Program Files\MyAppLocation\MyApp.exe" /REGSERVER Press Enter. Most executables do not display any message boxes when registered. It depends on how the application is created. Some applications when registered may open on your computer. Hope this helps. Quote Link to comment
erikg Posted July 12, 2006 Author Report Share Posted July 12, 2006 Possibly, try the following:To register DLLs or OCXs: On the Taskbar, select Start > Run In the Open field, type regsvr32 "<path>\NameOfFile.extension", where <path> is the directory where the file is located on your computer and NameOfFile.extension is the name of the file. For example: regsvr32 "C:\Windows\System32\Mydll.dll" Press Enter. If the file registers successfully, you'll see a message telling you it succceeded: To register an executable, or .exe, file: On the Taskbar, select Start > Run In the Open field, type "<path>\NameOfFile.exe" /REGSERVER, where <path> is the directory where the file is located on your computer and NameOfFile.exe is the name of the file. For example: "C:\Program Files\MyAppLocation\MyApp.exe" /REGSERVER Press Enter. Most executables do not display any message boxes when registered. It depends on how the application is created. Some applications when registered may open on your computer. Hope this helps. Thanks Mike! Also: Type Libraries Type libraries are binary files that contain all type information needed to utilize procedures and classes in a DLL. To register a type library, you can use regtlib.exe as follows: 1. Select Start Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.