Jump to content

access overload function in COM object?


tobject
 Share

Recommended Posts

I have overloaded function inside COM object (according to documentation)

$oMyComObj=ObjCreate("Blah-blah")

$oMyComObj.MyFunction(1234)

$oMyComObj.MyFunction("gogreen")

================================

MyFunction (Int64)

MyFunction (String)

When I pass integer, function works

when I pass string Autoit gives me

"The requested action with this object has failed.:"

MyFunction("gogreen")^Error

How does COM object handles overload? additional parameters?

Edited by tobject
Link to comment
Share on other sites

Not my COM object, so I really should not. Doc says String

Show me some examples and I try and see if it works

I really don't know how to reply to this. Neither of those sentences make much sense to me. I'll try:

  • Your - as something you try to use, not something you have made
  • Doc is always language specific. i.e. String too
  • Sure
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...