Jump to content
Sign in to follow this  

Passing $array as parameter in "Componente Object Model"

Recommended Posts



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:


Visit my repository

Share this post

Link to post
Share on other sites

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 )


  • Like 1

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  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.