Gangadhar NPK wrote:
From the sample [http://lxr.mozilla.org/seamonkey/source/xpcom/sample/nsSample.cpp]
can you please check up constructing the nsEmbedString with PRUniChars.
something like
nsEmbedString attr(PRUnichar("src"));

No, you can't usefully cast a pointer to a unichar. On windows, you can use:

  nsEmbedString attr(L"src");

On a trunk-based string API, you can use:
  NS_NAMED_LITERAL_STRING(attr, "src");

Otherwise, you should be able to use:
  nsEmbedString attr;
  NS_CStringToUTF16(nsEmbedCString("src"),
                    NS_CSTRING_ENCODING_ASCII,
                    attr);


Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to