Jump to content
Sign in to follow this  
Zohar

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

Recommended Posts

Zohar

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
Zohar

Anyone knows how to do it?

Or if it's possible or not?

Edited by Zohar

Share this post


Link to post
Share on other sites
Zohar

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
Zohar

To anyone encountering this thread, which explains how to call methods in a .NET DLL,

you might also be interested in the below linked thread, which explains how to call events in a .NET DLL:

How to Receive an Event from a .NET Form in AutoIt
'?do=embed' frameborder='0' data-embedContent>>

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  

×