Edit control in ANSI mode

This is a discussion on Edit control in ANSI mode within the Windows Programming forums, part of the Platform Specific Boards category; Hi. I'd like to know how can I force an edit control to be ansi instead of unicode, in VS ...

  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, 01: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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21