tobject Posted January 30, 2011 Share Posted January 30, 2011 (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 January 30, 2011 by tobject Link to comment Share on other sites More sharing options...
seandisanti Posted January 30, 2011 Share Posted January 30, 2011 probably the same result, but what happens if you pass your string in single quotes instead of double? Link to comment Share on other sites More sharing options...
tobject Posted January 30, 2011 Author Share Posted January 30, 2011 (edited) yep, same but I do think it has something to do with strings as parameters Edited January 30, 2011 by tobject Link to comment Share on other sites More sharing options...
trancexx Posted January 30, 2011 Share Posted January 30, 2011 (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 January 30, 2011 by trancexx ♡♡♡ . eMyvnE Link to comment Share on other sites More sharing options...
tobject Posted January 30, 2011 Author Share Posted January 30, 2011 Not my COM object, so I really should not. Doc says String Show me some examples and I try and see if it works Link to comment Share on other sites More sharing options...
trancexx Posted January 30, 2011 Share Posted January 30, 2011 Not my COM object, so I really should not. Doc says StringShow me some examples and I try and see if it worksI 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 madeDoc is always language specific. i.e. String tooSure ♡♡♡ . eMyvnE Link to comment Share on other sites More sharing options...
hench Posted January 30, 2011 Share Posted January 30, 2011 (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 January 30, 2011 by hench Link to comment Share on other sites More sharing options...
tobject Posted January 31, 2011 Author Share Posted January 31, 2011 Thanks, mate, but I'll stick to my bible Link to comment Share on other sites More sharing options...
seandisanti Posted January 31, 2011 Share Posted January 31, 2011 Thanks, mate, but I'll stick to my biblewow that's pretty awesome, you should get someone in washington to read it Link to comment Share on other sites More sharing options...
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