Jump to content

Need help with DllCall


Recommended Posts

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.

Link to comment
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.

Link to comment
Share on other sites

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
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...