Jump to content

Tool to Import an ActiveX Library


Recommended Posts

I would like to wrap an ActiveX interface in a LabVIEW class. This process is pretty tedious. Does anyone know of a tool similar to the "Import Shared Library" that would work for an ActiveX class (*.tlb; *.olb; *.ocx; *.dll)?

Link to comment

No tool, but the code for it should be pretty easy. I personally don't see the need, but I did post a basic example here which does this with .NET. The same thing should presumably apply to ActiveX code.

One thing you might want to do is create a template of the class VI and use that as a basis for each VI. This will save you having to script all the code which stays the same.

Link to comment

I have already jumped into scripting this tool. :book:

Wrapping the properties and methods should be easy. However, any suggestions on how to script the selection of a Type Library? It would be nice if the native Select Object From Type Library dialog could be launched, but I don't see much in scripting related to ActiveX and Automation Open functions.

I found this related post on LAVA, but it does not create the ActiveX ref. It creates an array of I16.

post-4274-0-92881000-1342012853.jpg

Edited by brianafischer
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.