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
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Richedit2 in Visual Studio 2008 cause the MFC dialog not to display

Richedit2 in Visual Studio 2008 cause the MFC dialog not to display

Scheduled Pinned Locked Moved C / C++ / MFC
c++visual-studiocsharpdebugging
5 Posts 3 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.
  • S Offline
    S Offline
    sharp_k
    wrote on last edited by
    #1

    I am getting back to VC++ after a long time. I am using VS 2008 SP1. It is a simple application a button, an editbox (plain) and a richedit box. When i added a control variable (CString) to richeditbox2, a message pops up that i must call this function. The messagebox now does not show again. when i run the program, i get no errors but the dialog fails to load. I get the following in output window. Binary was not built with debug information. Any info will be appreciated.

    S 1 Reply Last reply
    0
    • S sharp_k

      I am getting back to VC++ after a long time. I am using VS 2008 SP1. It is a simple application a button, an editbox (plain) and a richedit box. When i added a control variable (CString) to richeditbox2, a message pops up that i must call this function. The messagebox now does not show again. when i run the program, i get no errors but the dialog fails to load. I get the following in output window. Binary was not built with debug information. Any info will be appreciated.

      S Offline
      S Offline
      Stuart Dootson
      wrote on last edited by
      #2

      Are you calling AfxInitRichEdit2[^] in your application? Not calling that can have the effect you're seeing...

      Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p

      S 1 Reply Last reply
      0
      • S Stuart Dootson

        Are you calling AfxInitRichEdit2[^] in your application? Not calling that can have the effect you're seeing...

        Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p

        S Offline
        S Offline
        sharp_k
        wrote on last edited by
        #3

        Yes I tried that after finding some help online but it did not work. Still the same problem. I am using AfxInitRichEdit2() inside the OnInitiDialog as first line. I may need to recompile everything. I also tried linking to RichEdit20.dll ( in project setting) but did not work. I am using Windows Vista SP1 and Visual Studio 2008 SP1. Could it be that the dll is missing. I tried searching for the dll but could not find it.

        _ 1 Reply Last reply
        0
        • S sharp_k

          Yes I tried that after finding some help online but it did not work. Still the same problem. I am using AfxInitRichEdit2() inside the OnInitiDialog as first line. I may need to recompile everything. I also tried linking to RichEdit20.dll ( in project setting) but did not work. I am using Windows Vista SP1 and Visual Studio 2008 SP1. Could it be that the dll is missing. I tried searching for the dll but could not find it.

          _ Offline
          _ Offline
          _AnsHUMAN_
          wrote on last edited by
          #4

          Put AfxInitRichEdit2(); in InitInstance function.

          You need to google first, if you have "It's urgent please" mentioned in your question. ;-)_AnShUmAn_

          S 1 Reply Last reply
          0
          • _ _AnsHUMAN_

            Put AfxInitRichEdit2(); in InitInstance function.

            You need to google first, if you have "It's urgent please" mentioned in your question. ;-)_AnShUmAn_

            S Offline
            S Offline
            sharp_k
            wrote on last edited by
            #5

            That actually solved the problem. I was putting it in OnInitDialog. May be i was doped...lol Thanks

            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