Jump to content
Sign in to follow this  
tobject

access overload function in COM object?

Recommended Posts

tobject

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

Share this post


Link to post
Share on other sites
seandisanti

probably the same result, but what happens if you pass your string in single quotes instead of double?

Share this post


Link to post
Share on other sites
tobject

yep, same

but I do think it has something to do with strings as parameters

Edited by tobject

Share this post


Link to post
Share on other sites
trancexx

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

Share this post


Link to post
Share on other sites
tobject

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

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

Share this post


Link to post
Share on other sites
trancexx

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

Share this post


Link to post
Share on other sites
hench

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

Share this post


Link to post
Share on other sites
tobject

Thanks, mate, but I'll stick to my bible

Share this post


Link to post
Share on other sites
seandisanti

Thanks, mate, but I'll stick to my bible

wow that's pretty awesome, you should get someone in washington to read it

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  

×