f:\program files\microsoft visual studio\vc98\include\richedit.h(22) : warning C4518: 'extern ' : storage-class or type specifier(s) unexpected here; ignoredf:\program files\microsoft visual studio\vc98\include\richedit.h(22) : error C2143: syntax error : missing ';' before 'string'
f:\program files\microsoft visual studio\vc98\include\richedit.h(22) : fatal error C1004: unexpected end of file found

解决方案 »

  1.   

    在你初始化系统的时候调用 AfxInitRichEdit就可以了!
      

  2.   

    AfxInitRichEdit
    BOOL AFXAPI AfxInitRichEdit( );ResCall this function to initialize the rich edit control for the application. It will also initialize the common controls library, if the library hasn’t already been initialized for the process. If you use the rich edit control directly from your MFC application, you should call this function to assure that MFC has properly initialized the rich edit control runtime. If you use rich edit via CRichEditCtrl, CRichEditView, or CRichEditDoc, you don't need to call this function.
      

  3.   

    怎么调用?BOOL TryApp::InitInstance() 中调了,不管用
      

  4.   

    看看richedit.h之前包含的文件最后部分语法有没有问题