wxString test = wxString("UCS-2 string");
However, on Linux I am getting an assert on this.
Thank you.
Hi,
> How do I perform such conversion?
> I'm using TRUNK and it looks like I don't have to do anything
> on Windows, just write:
>
> wxString test = wxString("UCS-2 string");
On windows the wchar_t size is 2 which is matches the UCS-2 encoding.
On linux the wchar_t size is 4 (at least in my case - Ubuntu 32/64
bit) and it doesn't work directly.
You could use this:
http://docs.wxwidgets.org/stable/wx_wxmbconvutf16.html#wxmbconvutf16
>
> However, on Linux I am getting an assert on this.
>
> Thank you.
>
Regards,
>
>
--
Iulian Şerbănoiu
MinVG - http://minvg.sourceforge.net
J> I have some problems compiling wxwidgets for WinCE. I'm using MS
J> eMbedded Visual C 4.0 that works well for other applications and try
J> to compile as DLL for the Emulator.
I'm afraid you won't find much help with eVC here, everybody who ever use
it fled from it like from plague as soon as it was possible and started
using VC2005/2008 which is the only supported way to build wxWinCE nowadays.
J> First of all wxWidgets complains about
J>
J> "Unknown SDK, please fill-in missing pieces"
J>
J> That's easy to solve, I simply added __WINCE_STANDARDSDK__ to the
J> preprocessor definitions.
AFAIR using standard SDK is usually not what you want but I could be
wrong, WinCE variants/SDK definitions are rather confusing.
J> With these settings the mono-subproject fails with linker errors that
J> point to AUI and Multimedia - things I do not need for CE. What am I
J> doing wrong here?
Probably nothing, it's just that nobody used eVC for building wx in a very
long time AFAIK. Anyhow, where do you get references to aui/media library?
It shouldn't be difficult to fix this (but, again, you will mostly be on
your own when using this compiler).
Regards,
VZ
--
TT-Solutions: wxWidgets consultancy and technical support
http://www.tt-solutions.com/
JH> Hm, that doesn't sounds promising...
No, but using eVC is really not much fun. If you can switch to VC8/9/10
(beta 2 is out and available for download) I strongly recommend that you
do.
JH> Btw, these are the exact errors I get:
JH> mediactrlcmn.obj : error LNK2019: unresolved external symbol "void __cdecl
JH> _wx_link_dummy_func_wxmediabackend_am(void)"
JH> (?_wx_link_dummy_func_wxmediabackend_am@@YAXXZ) referenced in function
JH> _$E296
JH> mediactrlcmn.obj : error LNK2019: unresolved external symbol "void __cdecl
JH> _wx_link_dummy_func_wxmediabackend_wmp10(void)"
JH> (?_wx_link_dummy_func_wxmediabackend_wmp10@@YAXXZ) referenced in function
JH> _$E299
You probably should just exclude this file from your build.
JH> stdpaths.obj : error LNK2019: unresolved external symbol __imp__SHGetMalloc
JH> referenced in function "protected: static class wxString __cdecl
JH> wxStandardPaths::DoGetDirectory(int)" (?DoGetDirectory@wxStandardPaths
JH> @@KA?AVwxString@@H@Z)
JH> stdpaths.obj : error LNK2019: unresolved external symbol
JH> __imp__SHGetPathFromIDList referenced in function "protected: static class
JH> wxString __cdecl wxStandardPaths::DoGetDirectory(int)"
JH> (?DoGetDirectory@wxStandardPaths@@KA?AVwxString@@H@Z)
JH> stdpaths.obj : error LNK2019: unresolved external symbol
JH> __imp__SHGetSpecialFolderLocation referenced in function "protected: static
JH> class wxString __cdecl wxStandardPaths::DoGetDirectory(int)"
JH> (?DoGetDirectory@wxStandardPaths@@KA?AVwxString@@H@Z)
Looks like missing shell library or these functions are not available
under CE (although why does it compile then?). This is SDK-depending so I
don't know which is the case.