Loading ...
Sorry, an error occurred while loading the content.

[vim-multibyte] Re: [56a] Can't display japanese menu

Expand Messages
  • ?? ??
    Thank you Taro (about patch) but... Last parameter of function MultiByteToWideChar is the size, in wide characters, of the buffer pointed to by the
    Message 1 of 2 , Jan 11, 2000
    • 0 Attachment
      Thank you Taro
      (about patch)

      but...
      Last parameter of function "MultiByteToWideChar"
      is the size, in wide characters, of the buffer pointed
      to by the lpWideCharStr parameter.
      If this work ..., may be broken a few buffers.

      int nChar = 0;
      nChar = MultiByteToWideChar(
      CP_OEMCP,
      MB_PRECOMPOSED,
      lpAnsiIn,
      -1,
      lpWCStr,
      sizeof(lpAnsiIn)
      );
      return nChar;
    • ?? ??
      Sorry !!! I missed. miss: int nChar = 0; nChar = MultiByteToWideChar( CP_OEMCP, MB_PRECOMPOSED, lpAnsiIn, -1, lpWCStr, sizeof(lpAnsiIn) ); return nChar;
      Message 2 of 2 , Jan 11, 2000
      • 0 Attachment
        Sorry !!!
        I missed.

        miss:

        int nChar = 0;
        nChar = MultiByteToWideChar(
        CP_OEMCP,
        MB_PRECOMPOSED,
        lpAnsiIn,
        -1,
        lpWCStr,
        sizeof(lpAnsiIn)
        );
        return nChar;

        correct:

        int nChar = 0;
        nChar = MultiByteToWideChar(
        CP_OEMCP,
        MB_PRECOMPOSED,
        lpAnsiIn,
        -1,
        lpWCStr,
        lstrlen(lpAnsiIn)+1
        );
        return nChar;
      Your message has been successfully submitted and would be delivered to recipients shortly.