Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Syntax Edit
  New Posts New Posts RSS Feed - MBCS Chinese crashed..
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

MBCS Chinese crashed..

 Post Reply Post Reply
Author
Message
zhengle View Drop Down
Newbie
Newbie


Joined: 19 September 2011
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote zhengle Quote  Post ReplyReply Direct Link To This Post Topic: MBCS Chinese crashed..
    Posted: 28 November 2011 at 1:57am
i built the project using MBCS. When I used syntax edit for some lua file(which has Chinese comments), it crashed. I debug the problem, and found the code snippet:
 TCSLWR_S((LPTSTR)&dwChar0, 2);
the parameter "2" means sizeInWords, actually in MBCS version, we needs "size in bytes" which is 4.

I am not quite sure if it's a bug or has some other consideration. So i report it here for your reference.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.140 seconds.