If you are using a rich edit control in a dialog box (regardless whether your application is SDI, MDI, or dialog-based), you must call AfxInitRichEdit once before the dialog box is displayed. A typical place to call this function is in your program’s InitInstance member function. You do not need to call it for each time you display the dialog box, only the first time. You do not have to call AfxInitRichEdit if you are working with CRichEditView.

解决方案 »

  1.   

    If you are using a rich edit control in a dialog box (regardless whether your application is SDI, MDI, or dialog-based), you must call AfxInitRichEdit once before the dialog box is displayed. A typical place to call this function is in your program’s InitInstance member function. You do not need to call it for each time you display the dialog box, only the first time. You do not have to call AfxInitRichEdit if you are working with CRichEditView.
      

  2.   

    需要初始化。
    实际上就是装载系统动态连接库 riched32.dll riched20.dll你也可以通过手工装载来搞定。
    LoadLibrary( "riched20.dll" );
      

  3.   

    Richedit 动态库有问题;
    可以在InitInstance() 
    调用
    BOOL AFXAPI AfxInitRichEdit( );
      

  4.   

    加上:#include <afxrich.h> // MFC rich edit classesBOOL C***App::InitInstance()
    {
    ......
    AfxInitRichEdit( );
             .........
    }
      

  5.   

    在你的app类中的InitInstance()函数中加入AfxInitRichEdit();函数
    十有八九是这个问题。
      

  6.   

    用AfxInitRichEdit()已经搞定了,
    我在vc区另外提了一个问题:
    “关于用vc做界面有什么好书(最好是电子版的)、好资料吗?
    已经你们有心得体会、代码、库吗? ”
    欢迎各位去看看
      

  7.   

    在你的 InitInstance() 启动函数的开始加上这么一句就可以搞定了AfxInitRichEdit();