Jump to content
Sign in to follow this  
Zohar

[Closed] Calling a .NET DLL from AutoIt, with ComVisible(true) + DllCall()?

Recommended Posts

Hi

 

I recently discovered that I can create a .NET DLL, and mark some classes in it as ComVisible(true),

and then access that DLL from AutoIt as if it was a regular COM DLL!!

 

 

This is done by creating a class in the .NET DLL,

and then instantiating it in AutoIt, via ObjCreate().

 

This is terrific discovery for me.

 

 

 

 

My question:

Is it also possible, in addition to ObjCreate(), to call a method, via DllCall()?

(instead of ObjCreate())

 

 

If yes, how do I do it?

 

 

Thank you very much

Zohar

Edited by Zohar

Share this post


Link to post
Share on other sites

Hi

What do you mean by "directly"?

I can call a .NET DLL directly using ObjCreate(), If the .NET DLL has a class that was marked with ComVisible(true) attribute.

So I am curious to know If I can also call it via DllCall() somehow, without instantiating any object of a class..

Edited by Zohar

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  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...