Jump to content
Sign in to follow this  
LarryDalooza

COM and REFERENCE VARs

Recommended Posts

LarryDalooza

So AutoIt has a limitation in COM of methods that require ByRef variables. I have a COM object with a ByRef nResult...

Is there a way to set a property in another common COM object and pass that to a COM object that requires a ByRef variable? I am having a hard time explaining or knowing where to start but I imagine it would look like...

$obj1 = ObjCreate("SomeObjThatCouldHoldInfo")

$obj2 = ObjCreate("MyObjectThatNeedsREFERENCE")

$obj1.parameter = 0

$obj2.Initialize($obj1.parameter)

$nResult = $obj1.parameter

MsgBox(4096,"",$nResult)

Does any of this make sense. I would not know how to test this theory.

Lar.


f_mrcleansmalm_77ce002.jpgAutoIt has helped make me wealthy

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.