Thank you!
Yes, I found quite good quidline at http://www.mozilla.org/projects/xpcom/string-guide.html


But, as I realized, not all XPCOM services supports Unicode. For example IDirectoryService, IFile... has string as parameters.
hm, interesting why?


Christian Biesinger wrote:
Alexey Kakunin wrote:

Hm... does it mean that XPCOM interfaces is not a Unicode interfaces? It is possible to use unicode in XPCOM project?


Use wstring (or AString or AUTF8String). string is indeed not a unicode type, it is only for ASCII strings. wstring and AString refer to UTF-16 strings. Prefer AString over wstring, since it supports string sharing and can thus reduce copying.


--
Alexey Kakunin
CEO, EmDev
Jdanovskaya nab. 7-10
197110 St. Petersburg

Tel: +7 (812) 235-48-14
Fax: +7 (812) 235-48-14
_______________________________________________
Mozilla-xpcom mailing list
[email protected]
http://mail.mozilla.org/listinfo/mozilla-xpcom

Reply via email to