Want to pass autoit variable to dot Net.
VARIANT Connect(
[in] long ID,
[in] SAFEARRAY(VARIANT)* Strings,
[in, out] VARIANT_BOOL* newValues);
All function working properly where no need to pass any parameter.
If i do like this is not working.Its not giving any error but i am not getting output.
Local $o_id = 111
Local $i_args[3] = ["joe","mike","david"]
Local $i_bool = -1
OleX.Connect($o_id, $i_args, $i_bool)
In
You can pass the variables to C# code this way:
tst00.cs
using System;
class TestClass {
public void PassVars( int o_id, object[] i_args, int i_bool ) {
Console.WriteLine( "C# code:" );
Console.WriteLine( "o_id = {0}", o_id );
Console.WriteLine( "i_args[0] = {0}", i_args[0] );
Console.WriteLine( "i_args[1] = {0}", i_args[1] );
Console.WriteLine( "i_args[2] = {0}", i_args[2] );
// Convert object to s