Sign in to follow this  
Followers 0
AlmarM

Need help with DllCall

4 posts in this topic

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 dll

NetPeerConfiguration 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.

Share this post


Link to post
Share on other sites



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.

Share this post


Link to post
Share on other sites

#3 ·  Posted (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 by Manadar

Share this post


Link to post
Share on other sites

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.

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  
Followers 0