-----BEGIN PGP SIGNED MESSAGE----- Moin,
On Monday 08 March 2004 18:55, Randy W. Sims wrote: > On 03/08/04 12:26, Tels wrote: > > Good news: I asked on the Irrlicht board, and their very helpfull > > answer was, use some obsucre conversation function: > > > > void > > setWindowCaption(SV* classname, char* caption) > > PREINIT: > > wchar_t mytitle[512]; > > CODE: > > // TODO: find out length of scalar and alloc memory for myTitle? > > mbstowcs(mytitle, caption, 512); > > device->setWindowCaption(mytitle); > > > > This works! :) However, whoever thought up the name of these conversion > > functions should be shot. Honestly, who can remember these cryptic > > garbage names like mbscwsomethingfoobar? Glad that I have to write it > > only once as macro in XS :) > > Multi-Byte String TO Wide Character String. I don't think that function > is portable though, but I could be wrong. It works for me under Linux, and is used under Windows, mostly, so that counts as portable to me :) > And it doesn't seem like the > right conversion function to convert ascii to wide char, but I could be > wrong about that too - I know almost nothing about wide strings :(. Well, my tests with the window title showed that it works, unlike passing a perl scalar straight in - so thats what I gonna use for now. Actually I just wanted to map some functions, not to delve into the dangerous lands of string character set conversions :) cheers, Tels - -- Signed on Mon Mar 8 21:18:39 2004 with key 0x93B84C15. Visit my photo gallery at http://bloodgate.com/photos/ PGP key on http://bloodgate.com/tels.asc or per email. "Remember: If the game let's you do it, it's not cheating." -- Xarax -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2-rc1-SuSE (GNU/Linux) Comment: When cryptography is outlawed, bayl bhgynjf jvyy unir cevinpl. iQEVAwUBQEzVincLPEOTuEwVAQFQlwf9F39xO0ZU65QDsb9XiTjmKEFV/VtNCTp2 7Kmo2bsjt7hyvm95udaLDK3d1exNrgCd8HbMLJVtSs42MK1mgB8gGuOy1N1d3DHX 6+7BHNHvCduVIiDfH/dXo8jpe27qm5l178NUMuuA/FCVQ9pXQDZVTLgzxaniE+f8 hrLkpCRYuK82tPVYZFPTj0dEEf/KCmQyvttOn6UjDP60qpvwPhR/yxxtOan+MPbR v2uH5AWZpEyKhMyLg1OFLR4sgP4LWZq8lupCuMJAg8lYRpYEwQp/IiOKM6pxU+h9 p8IjS1wHopQfRDniUemzV+HLCboyjM0eXlKroqKgAf796hajUJlXnQ== =hzfo -----END PGP SIGNATURE-----