Jump to content

Runtime binding to an ActiveX Object


Recommended Posts

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

Link to comment
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

Possibly, try the following:

To register DLLs or OCXs:

  1. On the Taskbar, select Start > Run
  2. 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"
  3. Press Enter.
  4. If the file registers successfully, you'll see a message telling you it succceeded:

To register an executable, or .exe, file:

  1. On the Taskbar, select Start > Run
  2. 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
  3. 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.

Link to comment
Possibly, try the following:

To register DLLs or OCXs:

  1. On the Taskbar, select Start > Run
  2. 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"
  3. Press Enter.
  4. If the file registers successfully, you'll see a message telling you it succceeded:

To register an executable, or .exe, file:

  1. On the Taskbar, select Start > Run
  2. 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
  3. 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

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.