CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2004
    Location
    Punjab, India
    Posts
    113

    Edit Box Problem

    Hi,

    I am facing a problem regarding limit of text in edit box. I actually need a text box box which can handle text in the range of 2,500,000 characters.
    I am able to achieve this in winXp, win2k but on win9x. my
    application fails and limit goes down to 9,000 characters only.
    I tried Microsoft Rich TextBox also but it seems to crash my application giving something like stack overflow. Can anyone figure out the problem.
    I need the solution very urgently.

    thnx in advance,
    Amit

  2. #2
    Join Date
    Sep 2001
    Location
    San Diego
    Posts
    2,147
    See EM_LIMITTEXT and EM_EXLIMITTEXT

    You could be hitting a hard limit in Windows 95 with the edit control (32K for single line, 64K for multiline).

    Rich edit controls default to 64K, but can be forced beyond this.

    Trying to handle 2+MB in a control in Win95 might be painful. If there are other ways to provide the functionality you need, this might be preferable.

    It is possible, however, that the rich edit control may work for you.

    Crashing may occur with Rich Edit controls if you don't call AfxInitRichEdit first. This is typically called in your InitInstance.

    Hope this helps,

    - Nigel

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured