LarryDalooza Posted August 21, 2008 Posted August 21, 2008 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. AutoIt has helped make me wealthy
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now