Jump to content

Recommended Posts

Posted (edited)

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
Posted (edited)

There are strings and there are strings.

You should know what kind of string your object need and can understand. Considering you don't it's probably not binary string.

Edited by trancexx

♡♡♡

.

eMyvnE

Posted

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

♡♡♡

.

eMyvnE

Posted (edited)

lol, it's like rain on your weddings day.

I believe you got this and that to help around a little.

oh, almost forgot, this to keep morale up !!!

good luck and happy sunday!

hench

Edited by hench

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
×
×
  • Create New...