Can anybody tell me how to convert an int value to a nsEmbedString?
I need to use this to set the value of a DOM progress bar:
mProgressBar->SetAttribute("value", "45%");

// the way I did this in earlier
TCHAR szValue[5];
wsprintf(szValue, TEXT("%li%%"), *Value);
mProgressBar->SetAttribute(NS_LITERAL_STRING("value"),
NS_ConvertUTF8toUCS2(szValue));

But now I need to use fronzen string API with nsEmbedString, which does
not offer NS_ConvertUTF8toUCS2.

How can I construct an nsEmbedString with an int plus "%".

Thank you very much!

Martin

_______________________________________________
Mozilla-xpcom mailing list
[email protected]
http://mail.mozilla.org/listinfo/mozilla-xpcom

Reply via email to