[python-win32] Passing string[] parameters to c# .NET function
Aishwarya Sivakumar
aishwaryashiv at gmail.com
Wed Jul 24 07:59:21 CEST 2013
This is what i got from the OleView:
HRESULT myFunc(string cmd, params object[] arg)
[id(0x6002003a), vararg]
HRESULT myFunc(
[in] BSTR cmd,
[in] SAFEARRAY(VARIANT) arg,
[out, retval] VARIANT_BOOL* pRetVal);
HRESULT myFunc(string cmd, params string[] arg)
[id(0x6002003a)]
HRESULT myFunc(
[in] BSTR cmd,
[in] SAFEARRAY(BSTR) arg,
[out, retval] VARIANT_BOOL* pRetVal);
On Tue, Jul 23, 2013 at 11:40 PM, Bill Tutt <bill at tutts.org> wrote:
> What does myFunc (both the params string[] and params object[] version)
> look like in the generated .tlb (from regasm.exe /tlb) when viewed using
> OleView.exe?
>
> That ought to provide us with the biggest hint I would think.
>
> Bill
>
>
> On Tue, Jul 23, 2013 at 9:44 AM, Aishwarya Sivakumar <
> aishwaryashiv at gmail.com> wrote:
>
>> Hi,
>> Thanks, I could verify the same with IronPython. I was just curious if
>> there was a solution using win32com. Also when i modified the function
>>
>> bool myFunc(string cmd, params object[] arg)
>>
>> I could give server.myFunc(“ABCD”, [“true”]) and the function is called properly.
>>
>>
>> On Fri, Jul 19, 2013 at 10:16 PM, Tim Roberts <timr at probo.com> wrote:
>>
>>> Vernon D. Cole wrote:
>>> > Reaching to a .NET assembly from traditional ("non managed") code such
>>> > as CPython is not easy.
>>>
>>> Well, based on the partial solution that he has so far, I'm assuming he
>>> has exported a COM object from his .NET code. At that point, it
>>> shouldn't be any different from any other COM server.
>>>
>>> --
>>> Tim Roberts, timr at probo.com
>>> Providenza & Boekelheide, Inc.
>>>
>>> _______________________________________________
>>> python-win32 mailing list
>>> python-win32 at python.org
>>> http://mail.python.org/mailman/listinfo/python-win32
>>>
>>
>>
>> _______________________________________________
>> python-win32 mailing list
>> python-win32 at python.org
>> http://mail.python.org/mailman/listinfo/python-win32
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-win32/attachments/20130724/a6c6e260/attachment-0001.html>
More information about the python-win32
mailing list