=sinister= Posted January 25, 2009 Share Posted January 25, 2009 (edited) I can never seem to call a function in a dll... @error always returns 3 (For function not found...) using System; namespace Test { public class Runner { public String test() { return ("test"); } } } There is my dll. I compile it, everything is fine. I don't know too much about C#, and it's the first time I have tried creating a dll. Here is my autoit dll call: $dll = DllOpen(".\mydll.dll") $test = DllCall($dll, "str", "test") MsgBox(0, "Debug", @error) DllClose($dll) Edited January 25, 2009 by =sinister= Link to comment Share on other sites More sharing options...
trancexx Posted January 25, 2009 Share Posted January 25, 2009 I can never seem to call a function in a dll... @error always returns 3 (For function not found...) using System; namespace Test { public class Runner { public String test() { return ("test"); } } } There is my dll. I compile it, everything is fine. I don't know too much about C#, and it's the first time I have tried creating a dll. Here is my autoit dll call: $dll = DllOpen(".\mydll.dll") $test = DllCall($dll, "str", "test") MsgBox(0, "Debug", @error) DllClose($dll)Try $dll = DllOpen("mydll.dll") or $dll = DllOpen("mydll") or $dll = DllOpen("full path\mydll.dll") just kidding Did you say C#? ♡♡♡ . eMyvnE Link to comment Share on other sites More sharing options...
=sinister= Posted January 25, 2009 Author Share Posted January 25, 2009 Um.. yes, my dll is written in C#. Link to comment Share on other sites More sharing options...
trancexx Posted January 25, 2009 Share Posted January 25, 2009 Um.. yes, my dll is written in C#.You probably need devs for that.Read this ♡♡♡ . eMyvnE Link to comment Share on other sites More sharing options...
smashly Posted January 25, 2009 Share Posted January 25, 2009 Hi, Can you attach your dll to your post? Cheers Link to comment Share on other sites More sharing options...
=sinister= Posted January 25, 2009 Author Share Posted January 25, 2009 I've changed it a little: using System; using System.Windows.Forms; namespace Test { public class Runner { public void test() { MessageBox.Show("Why isn't this working >=O"); } } }ClassLibrary1.dll 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