Re: [python-win32] win32com.client: Struggling with dynamic dispatch, behavior differs when debugging

2016-09-30 Thread Dominik Heller
> That's odd. Is your application compiled with -DUNICODE? BSTR is > always Unicode, but LPCTSTR depends on the compiled character set. I > would expect it to be LPCWSTR. However, if it works for > "obj_2.SubObject.DoSomething", then that's not a problem. It's compiled with /D "_MBCS" so it sh

Re: [python-win32] win32com.client: Struggling with dynamic dispatch, behavior differs when debugging

2016-09-30 Thread Tim Roberts
On Sep 30, 2016, at 1:01 AM, Dominik Heller wrote: > >> That's odd. Is your application compiled with -DUNICODE? BSTR is >> always Unicode, but LPCTSTR depends on the compiled character set. I >> would expect it to be LPCWSTR. However, if it works for >> "obj_2.SubObject.DoSomething", then th