Zohar Posted November 21, 2012 Share Posted November 21, 2012 (edited) 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 muchZohar Edited November 15, 2015 by Zohar Link to comment Share on other sites More sharing options...
Zohar Posted November 22, 2012 Author Share Posted November 22, 2012 (edited) Anyone knows how to do it? Or if it's possible or not? Edited November 22, 2012 by Zohar Link to comment Share on other sites More sharing options...
JohnOne Posted November 22, 2012 Share Posted November 22, 2012 I believe you cannot directly call a .net dll. (DllCall) This was apparent after a quick search and two minutes reading. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
Zohar Posted November 22, 2012 Author Share Posted November 22, 2012 (edited) HiWhat 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 November 22, 2012 by Zohar Link to comment Share on other sites More sharing options...
JohnOne Posted November 22, 2012 Share Posted November 22, 2012 HiWhat do you mean by "directly"?I believe you cannot directly call a .net dll. (DllCall) AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
Zohar Posted December 13, 2014 Author Share Posted December 13, 2014 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>> Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now