The value for nMaxChars can be found easier by using ME_GetTextLength.
Attach a file by drag & drop or click to upload