[python-win32] Passing string[] parameters to c# .NET function

Aishwarya Sivakumar aishwaryashiv at gmail.com
Wed Jul 17 10:47:39 CEST 2013


I have a C# .NET function bool myFunc(string cmd, params string[] arg); I’m
trying to access this using win32com as given below:

server.myFunc(“ABCD”, [[“true”]]), but always get Type mismatch error

com_error: (-2147352571, 'Type mismatch.', None, 2)



Am I missing something? What is the correct manner in which I can pass the
arguments to this function? I’m totally new to win32com and hence need help
with regards to this problem



Regards,

Aishwarya
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-win32/attachments/20130717/3f96c9d1/attachment.html>


More information about the python-win32 mailing list