Thread: Edit control in ANSI mode

  1. #1
    mands
    Guest

    Edit control in ANSI mode

    Hi.

    I'd like to know how can I force an edit control to be ansi instead of unicode, in VS .NET. I'm trying to save memory, and a buffer of WCHAR's is of no use to me, and it takes up twice the memory.

    Thank you.

  2. #2
    Banned master5001's Avatar
    Join Date
    Aug 2001
    Location
    Visalia, CA, USA
    Posts
    3,685
    I'm sorry for not answering your question but this is an important issue to bring up. Why is the memory issue so critical? A WCHAR is only 2 bytes. For example lets say that the edit controls buffer size is 32k that would be enough memory for 16k's worth of text information.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. (Multiline) Edit Control Limit
    By P4R4N01D in forum Windows Programming
    Replies: 9
    Last Post: 05-17-2008, 11:56 AM
  2. endless edit control
    By ZerOrDie in forum Windows Programming
    Replies: 3
    Last Post: 03-21-2003, 02:51 AM
  3. Controlling an edit control
    By master5001 in forum Windows Programming
    Replies: 2
    Last Post: 10-16-2001, 03:08 PM
  4. Edit control
    By The15th in forum Windows Programming
    Replies: 2
    Last Post: 09-25-2001, 12:36 PM
  5. Rich edit control example Win API
    By Echidna in forum Windows Programming
    Replies: 1
    Last Post: 09-17-2001, 02:12 AM