AlmarM Posted April 1, 2011 Share Posted April 1, 2011 Hey!I'm really new to DllCall and I could use some help.Is it possible call functions inside the dll wich are used by OOP?Example:Source dllNetPeerConfiguration config = new NetPeerConfiguration("chat"); config.MaximumConnections = 100; config.Port = 14242; s_server = new NetServer(config);Anyway to put this in AutoIt? Minesweeper A minesweeper game created in autoit, source available. _Mouse_UDF An UDF for registering functions to mouse events, made in pure autoit. 2D Hitbox Editor A 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes. Link to comment Share on other sites More sharing options...
AlmarM Posted April 1, 2011 Author Share Posted April 1, 2011 Could I use ObjCreate on each class inside the dll to manage what I want? After I registered all ofcourse. Minesweeper A minesweeper game created in autoit, source available. _Mouse_UDF An UDF for registering functions to mouse events, made in pure autoit. 2D Hitbox Editor A 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes. Link to comment Share on other sites More sharing options...
jvanegmond Posted April 1, 2011 Share Posted April 1, 2011 (edited) Is it possible call functions inside the dll wich are used by OOP?This does not make sense. OO is a programming paradigm, it is not to be confused with a calling convention.I googled "NetPeerConfiguration" to figure out what you were trying to do and I see you have some C# code there (Lidgren.Network). By default, C# dlls (class libraries) do not expose their functionality to COM but it can be enabled. I see Lidgren network is open sourced so you can probably compile it to expose COM functionality. That's going to take some work however. After you have converted it to expose COM, built it succesfully and registreren it, THEN you can use the COM library.That, or you can learn C# and write it like that. Edited April 1, 2011 by Manadar github.com/jvanegmond Link to comment Share on other sites More sharing options...
AlmarM Posted April 3, 2011 Author Share Posted April 3, 2011 Thanks for your reply! I got it working. Minesweeper A minesweeper game created in autoit, source available. _Mouse_UDF An UDF for registering functions to mouse events, made in pure autoit. 2D Hitbox Editor A 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes. 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