Luigi Posted September 2, 2017 Share Posted September 2, 2017 (edited) Greetings, I create a simple dll in C#, it was used through do COM (Component Object Model). Is possible send an array as parameter through COM to dll? Local $arr[2] = [11, 22] ConsoleWrite("[ " & $oDll.Array($arr) & " ]" & @LF) ConsoleWrite("@error[" & @error & "] " & @LF) The error is: err.number is: -2147024809 err.windescription: Parâmetro incorreto. err.description is: err.source is: err.helpfile is: err.helpcontext is: err.lastdllerror is: 0 err.scriptline is: 32 err.retcode is: Edited February 2, 2020 by Luigi Visit my repository Link to comment Share on other sites More sharing options...
LarsJ Posted September 2, 2017 Share Posted September 2, 2017 Your link is not working. Yes, This is possible. But your C# parameter to receive the AutoIt array must be an array of objects. Something like this: public void Array( object[] aInput ) Luigi 1 Controls, File Explorer, ROT objects, UI Automation, Windows Message MonitorCompiled code: Accessing AutoIt variables, DotNet.au3 UDF, Using C# and VB codeShell menus: The Context menu, The Favorites menu. Shell related: Control Panel, System Image ListsGraphics related: Rubik's Cube, OpenGL without external libraries, Navigating in an image, Non-rectangular selectionsListView controls: Colors and fonts, Multi-line header, Multi-line items, Checkboxes and icons, Incremental searchListView controls: Virtual ListViews, Editing cells, Data display functions Link to comment Share on other sites More sharing options...
Luigi Posted September 2, 2017 Author Share Posted September 2, 2017 @LarsJ, fantastic! It's work fine! Thank you! Visit my repository 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