Search code examples
c++xpcom

How to convert char* to PRUnichar *


I need to pass char* to XPCOM function but that function accepts PRUnichar *. How to convert from char* to PRUnichar * ?


Solution

  • Take a look at nsAutoString.