Jump to content

Passing $array as parameter in "Componente Object Model"


Luigi
 Share

Recommended Posts

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 by Luigi

Visit my repository

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

 

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