Sign in to follow this  
Followers 0
tobject

access overload function in COM object?

9 posts in this topic

#1 ·  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

Share this post


Link to post
Share on other sites



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


1100111 00001011101111 00011101101111 00010111100100 00001111110100 00110111110010 00101101111001 0011100i didn't make up this form of encryption, but i like it.credit to the lvl 6 challenge on arcanum.co.nz

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

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

#4 ·  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

Share this post


Link to post
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

Share this post


Link to post
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

♡♡♡

.

eMyvnE

Share this post


Link to post
Share on other sites

#7 ·  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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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

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

1100111 00001011101111 00011101101111 00010111100100 00001111110100 00110111110010 00101101111001 0011100i didn't make up this form of encryption, but i like it.credit to the lvl 6 challenge on arcanum.co.nz

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  
Followers 0