Thread: RichEdit 4.1 problem

  1. #1
    Registered User
    Join Date
    Jul 2005
    Posts
    4

    RichEdit 4.1 problem

    Hi, Goran here.

    How can I Create in Visual C++ 6.0 or Visual C++ .NET the RichEdit 4.1 control (msftedit.dll), put the Justify Alignment and make some words at the and of the line with hyphenate?

    Please, code.

    Thanks.

  2. #2
    erstwhile
    Join Date
    Jan 2002
    Posts
    2,227
    That version of richedit control is UNICODE only and requires a minimum operating system of winxp sp1. In other words, unless you're comfortable with UNICODE and are certain that the target os will meet the minimum requirement then you would be as well gaining familiarity with the features of earlier versions.

    If you still intend on fiddling around with it anyway, then make sure UNICODE and _UNICODE are both defined for your application, load the required dll as you would for other richedit controls and use 'MSFTEDIT_CLASS' for the class name when you create a richedit v4.1.

    More information: msdn: richedit controls.
    CProgramming FAQ
    Caution: this person may be a carrier of the misinformation virus.

  3. #3
    Registered User
    Join Date
    Jul 2005
    Posts
    4
    Thank you, but I need a CODE for Create control (RichTextBox 4.1 - msftedit), Justify alignement and Hyphenate some words at the end of the line.

  4. #4
    erstwhile
    Join Date
    Jan 2002
    Posts
    2,227
    What have you tried in the couple of weeks since you originally posted this question? Did you read up on richedit controls starting from the msdn page I provided a link to? Have you, on the basis of your understanding of that information, made any attempt to write the CODE for yourself?

    If you have and are still experiencing difficulty then by all means post the problematic code with a description of that problem.
    CProgramming FAQ
    Caution: this person may be a carrier of the misinformation virus.

  5. #5
    Registered User
    Join Date
    Jul 2005
    Posts
    4
    Hi Ken,
    I am beginer in Visual C++. I tried to do it with RichTextBox 4.1 but it is heavy for me.
    I have Windows XP SP1, but when I LoadLibrary ("msftedit.dll"), include CreateWindowEx function to create RT 4.1, and use MSFTEDIT_CLASS in this function, and try Run - program
    write error: .......do not recognize MSFTEDIT_CLASS.

    The program recognize only RICHEDIT_CLASS, and it is for RichTExtBox 2.0 (or 3.0)

    I've wrote too MSDN:Controls, but I can't still Create RichTextBox 4.1 (msftedit.dll)

    Therefore, I need a code.

    Sorry for my English.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Memory problem with Borland C 3.1
    By AZ1699 in forum C Programming
    Replies: 16
    Last Post: 11-16-2007, 11:22 AM
  2. Someone having same problem with Code Block?
    By ofayto in forum C++ Programming
    Replies: 1
    Last Post: 07-12-2007, 08:38 AM
  3. A question related to strcmp
    By meili100 in forum C++ Programming
    Replies: 6
    Last Post: 07-07-2007, 02:51 PM
  4. WS_POPUP, continuation of old problem
    By blurrymadness in forum Windows Programming
    Replies: 1
    Last Post: 04-20-2007, 06:54 PM
  5. Laptop Problem
    By Boomba in forum Tech Board
    Replies: 1
    Last Post: 03-07-2006, 06:24 PM