>>762
以下の関数を使えば、7 は、
wchar_t *wpszText = ConvertAcpMbcsToUtf16(str2);
でいける。

wchar_t *ConvertAcpMbcsToUtf16( const char *pszStr )
{
  // ワイド文字列(UTF16, unicode) へ変換後の文字列長を得る
  int      lenUnicode  = MultiByteToWideChar( CP_THREAD_ACP, 0, pszStr, -1, NULL, 0 );
  
  // 必要な分だけ ワイド文字列(UTF16, unicode) のバッファを確保
  wchar_t    *pbufUnicode    = new wchar_t [lenUnicode];
  if ( pbufUnicode == NULL ) {
    return  NULL;
  }
  
  // デフォルトコードページ(ShiftJISなど) から ワイド文字列(UTF16, unicode) へ変換する :
  MultiByteToWideChar( CP_THREAD_ACP, 0, pszStr, -1, pbufUnicode, lenUnicode );
  
  return  pbufUnicode;