Sign in to follow this  
Followers 0
Luigi

Passing $array as parameter in "Componente Object Model"

3 posts in this topic

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:

 


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 )

 

1 person likes this

Share this post


Link to post
Share on other sites

@LarsJ, fantastic! It's work fine! Thank you!


Visit my repository

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