2013年6月28日 星期五

Convert from char* to wchar_t*

To Convert char* to wchar_t*

Assume we have a char* string named c

    const size_t cSize = strlen(c)+1;
    wchar_t* wc = new wchar_t[cSize];
    mbstowcs (wc, c, cSize);


Now you have wchar_t* string wc.

You can also refer to http://twnin.blogspot.tw/2012/03/convert-between-char.html for more type to convert.

1 則留言:

  1. New Betting Odds at Borgata Hotel Casino & Spa in
    New 강원도 출장마사지 Betting Odds at Borgata 시흥 출장샵 Hotel Casino & 군산 출장샵 Spa in Atlantic City. Get your $50 free bet 대구광역 출장샵 now! 강릉 출장마사지 See our New Betting Odds page!

    回覆刪除