E1M1 Posted July 3, 2010 Share Posted July 3, 2010 (edited) C# namespace test { public class test { public static string testreturn() { return "this is a test return string"; } } } au3 $call = DllCall("test.dll","str","testreturn") MsgBox(0,0,@error) msgbox displays 3. any ideas what to do? Edited July 3, 2010 by E1M1 edited Link to comment Share on other sites More sharing options...
Richard Robertson Posted July 4, 2010 Share Posted July 4, 2010 It won't ever work like that because the .Net framework doesn't compile native dlls. AutoIt cannot load .Net dlls right now. I've been working on a way to do so but it's not easy or simple. Link to comment Share on other sites More sharing options...
Fubarable Posted July 4, 2010 Share Posted July 4, 2010 If you know some C, you could probably use MS Visual Studio write a small C utility program to create a DLL that can then make calls to the .NET DLL. Link to comment Share on other sites More sharing options...
Richard Robertson Posted July 5, 2010 Share Posted July 5, 2010 Yes, a 3rd party middle man is required currently. However it will be limited to specific calls unless you can come up with some easy to use but fully accessible system. Link to comment Share on other sites More sharing options...
E1M1 Posted July 5, 2010 Author Share Posted July 5, 2010 maybe make C++ dll that receive whole DllCall() as string, then executes it by autoit rules, and then return array. I heard about plugins for au3 maybe these could help. edited 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