Re: CLASSINFO && Unicode Issue
"J. Perkins" <[email protected]>
| Newsgroups | gmane.comp.lib.wxwindows.wxnet |
|---|---|
| Message-ID | <[email protected]> |
Why do you need to get the class names to C#? You could store an IntPtr
to the class name, then call a C function to compare things to it. So
something like this:
IntPtr classname = getClassName(wxObject);
if (isTypeOf(classname, "BoxSizer"))
// do something
Would that help?
Jason
379
Bryan Bulten wrote:
> Class names are stored using wxChar's. So in order to do this
> conversion, an instance of wxString must be created; which is why I was
> using strdup() to allocate memory.
>
> After a bit more research, I discovered that wxChar is 2 bytes on
> Windows, and 4 bytes in Linux.
>
> The most unfortunate part about this is that mono/Portable.NET and the
> C# standard use 2 byte char's. Basically, this means that sending
> a wxChar* to C# in Linux won't work correctly.
-------------------------------------------------------
This SF.net email is sponsored by:
The Definitive IT and Networking Event. Be There!
NetWorld+Interop Las Vegas 2003 -- Register today!
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en