Sign in to follow this  
Followers 0
Fragaholic

ObjCreate from .tlb

2 posts in this topic

I have an app that I use from VB via COM, and now I would like to use AutoIt in place of VB.

When using VB, I start by adding a 'Reference', which allows me to register the app by selecting the .TLB. Then i can create an object with Set myObj = CreateObject("QaDoc").

In AutoIt, is use $myObj = ObjCreate("CM4D.QaDoc"), which does not work.

How do I replace the 'Add Reference' step in AutoIt?

When I use oleview.exe, the app only appears in the Type Libraries section, and not in the Application IDs section. I have access to the developers of the COM app, so if I need them to change something (a registration?), that is a possibility.

Share this post


Link to post
Share on other sites



AddReference when used on a COM object in a .Net project will actually generate a wrapper assembly that your code can make calls on. AutoIt doesn't have that kind of functionality.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0