[Mono-list] What is Correct way to marshal wchar_t ?

2009-06-03 Thread ptr2009
hey all I am trying to marshal strings from managed code to native code using DllImport. Marshalling both wchar_t* and char* works under mono on a windows box. But on mac os x wchart_t marshalling does not seem to work. The wchar_t* is all junk. I have tried to search this forum and people

Re: [Mono-list] What is Correct way to marshal wchar_t ?

2009-06-03 Thread Maser, Dan
. -Original Message- From: mono-list-boun...@lists.ximian.com [mailto:mono-list-boun...@lists.ximian.com] On Behalf Of ptr2009 Sent: Wednesday, June 03, 2009 11:54 AM To: mono-list@lists.ximian.com Subject: [Mono-list] What is Correct way to marshal wchar_t ? hey all I am trying

Re: [Mono-list] What is Correct way to marshal wchar_t ?

2009-06-03 Thread Maser, Dan
] Sent: Wednesday, June 03, 2009 12:36 PM To: Maser, Dan Cc: mono-list@lists.ximian.com Subject: Re: [Mono-list] What is Correct way to marshal wchar_t ? I am using swig to generate all my interop stuff as recommended by http://www.mono-project.com/Interop_with_Native_Libraries as I have lot of C

Re: [Mono-list] What is Correct way to marshal wchar_t ?

2009-06-03 Thread ptr
. -Original Message- From: mono-list-boun...@lists.ximian.com [mailto: mono-list-boun...@lists.ximian.com] On Behalf Of ptr2009 Sent: Wednesday, June 03, 2009 11:54 AM To: mono-list@lists.ximian.com Subject: [Mono-list] What is Correct way to marshal wchar_t ? hey all I am trying