Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Rich edit control problem

Rich edit control problem

Scheduled Pinned Locked Moved C / C++ / MFC
helptutorialquestion
5 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    bluehai
    wrote on last edited by
    #1

    I add a rich edit control from controls tool box, when I run my project, it appear a message box "Failed to create empty document" What is this error ? Could you give me an example how to create a rich edit control ? Thank you.

    D 1 Reply Last reply
    0
    • B bluehai

      I add a rich edit control from controls tool box, when I run my project, it appear a message box "Failed to create empty document" What is this error ? Could you give me an example how to create a rich edit control ? Thank you.

      D Offline
      D Offline
      David Crow
      wrote on last edited by
      #2

      Have you called AfxInitRichEdit()?


      "Ideas are a dime a dozen. People who put them into action are priceless." - Unknown

      L 1 Reply Last reply
      0
      • D David Crow

        Have you called AfxInitRichEdit()?


        "Ideas are a dime a dozen. People who put them into action are priceless." - Unknown

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        Why do we need to use this function ? Thank you.

        D M 2 Replies Last reply
        0
        • L Lost User

          Why do we need to use this function ? Thank you.

          D Offline
          D Offline
          David Crow
          wrote on last edited by
          #4

          You might not need to, unless this is an MFC application. It was merely a suggestion. Do you know for certain that it is not needed?


          "Ideas are a dime a dozen. People who put them into action are priceless." - Unknown

          1 Reply Last reply
          0
          • L Lost User

            Why do we need to use this function ? Thank you.

            M Offline
            M Offline
            Maximilien
            wrote on last edited by
            #5

            Because it will enable/initialize the richedit support.


            Maximilien Lincourt Your Head A Splode - Strong Bad

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups