-----BEGIN PGP SIGNED MESSAGE----- Moin,
I have got this XS function: void setWindowCaption(SV* classname, wchar_t* caption) CODE: device->setWindowCaption(caption); I call it from Perl with: $app->setWindowCaption("Some String"); Thi does (surprise!) not work properly, because "Some String" is one byte per char, while I assume that wchar is two bytes. How do I convert the perl string so that it can be passed to the C++ function? Is there something which would do this for me easily? L"String" as seen in C ++ does not work in Perl, would some sort of Encode help? Best wishes, Tels - -- Signed on Sat Mar 6 12:14:33 2004 with key 0x93B84C15. Visit my photo gallery at http://bloodgate.com/photos/ PGP key on http://bloodgate.com/tels.asc or per email. "Die deutsche Zensoren - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Dummköpfe - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -." Heinrich Heine -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2-rc1-SuSE (GNU/Linux) Comment: When cryptography is outlawed, bayl bhgynjf jvyy unir cevinpl. iQEVAwUBQEmzIncLPEOTuEwVAQHKRwf9HuVFggFldhSBLDXESO3X4H4EUG47F2P6 8r6M66PI29HHSf6vBgk7CvKN9r5mkS2qDYo9UUncD06sDKu9GbWxiY8cPx/tEPHH l0fjAW4DcKK6xrAkZm6H/W9hh2eaoPrTXBtQqZM+Q3PQ1SAofcR7ETn1z+jMT6LG gnCWASvoKujAWEsgCRBSAZySBZv06VMDpwmarHA84Oul7mxqKR+y4oNwNkm+rnbx ZmLzEYlf7S/70EP16tqwxfKmdyDwpzjhM0MAJN6LW9Xq0Ea6CfpDncAsJT1zqScr MZRYyu7OObZzmmSpHhX18DITIaK06TNn0aRz+1EfnPCoIcsLgqo0nQ== =deiF -----END PGP SIGNATURE-----