Sign in to follow this  
Followers 0
obrienj

Can a DLL written in C# be invoked by DLLCall?

4 posts in this topic

As the subject asks, can a DLL written in C# be invoked by an AutoIt script using the DLLxxx calls?

If not, can someone explain why?

And if they can, are there any special considerations?

Regards,

Jim

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

I dont believe you can, but cannot fully explain why except to say Autoit cannot directy access the .net framework.

Taken from this post, you may be able to acces a C# dll using COM, provided you craete the dll yourself.

Edited by JohnOne

AutoIt Absolute Beginners    Require a serial    Pause Script    Video Tutorials by Morthawt   ipify 

Monkey's are, like, natures humans.

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

It is possible after some manipulations

http://www.codeproject.com/kb/dotnet/emilio_managed_unmanaged.aspx

There is a tool to simplify this task: http://www.autoit.de/index.php?page=Thread&postID=110596#post110596

PS: the modifed DLL still needs the .NET-framework.

Edited by ProgAndy

*GERMAN* [note: you are not allowed to remove author / modified info from my UDFs]My UDFs:[_SetImageBinaryToCtrl] [_TaskDialog] [AutoItObject] [Animated GIF (GDI+)] [ClipPut for Image] [FreeImage] [GDI32 UDFs] [GDIPlus Progressbar] [Hotkey-Selector] [Multiline Inputbox] [MySQL without ODBC] [RichEdit UDFs] [SpeechAPI Example] [WinHTTP]UDFs included in AutoIt: FTP_Ex (as FTPEx), _WinAPI_SetLayeredWindowAttributes

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

It is possible after some manipulations

http://www.codeproject.com/kb/dotnet/emilio_managed_unmanaged.aspx

There is a tool to simplify this task: http://www.autoit.de/index.php?page=Thread&postID=110596#post110596

PS: the modifed DLL still needs the .NET-framework.

Many thanks, I am off to try the tool.

EDIT: It works great, again thanks for the pointer

Regards,

Jim

Edited by obrienj

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