救急编译老出错,f:\program files\microsoft visual studio\vc98\include\richedit.h(22) : warning C4518: 'extern ' : sto

skyonsky 2001-10-16 03:15:07
错误:
f:\program files\microsoft visual studio\vc98\include\richedit.h(22) : warning C4518: 'extern ' : storage-class or type specifier(s) unexpected here; ignored
我重装了vc还是报这个错!
请问该怎么除理。
...全文
199 8 打赏 收藏 转发到动态 举报
写回复
用AI写文章
8 条回复
切换为时间正序
请发表友善的回复…
发表回复
蒋晟 2001-10-16
  • 打赏
  • 举报
回复
看看richedit.h之前包含的文件最后部分语法有没有问题
Jeffery__Chen 2001-10-16
  • 打赏
  • 举报
回复
gz
skyonsky 2001-10-16
  • 打赏
  • 举报
回复
我昨天还可编译的程序,今天都不行了。
我用向导直接生成的简单程序,也不行。
skyonsky 2001-10-16
  • 打赏
  • 举报
回复
怎么调用?BOOL TryApp::InitInstance() 中调了,不管用
sanjiang 2001-10-16
  • 打赏
  • 举报
回复
AfxInitRichEdit
BOOL AFXAPI AfxInitRichEdit( );

Remarks

Call 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.
CoolBoy_007 2001-10-16
  • 打赏
  • 举报
回复
在你初始化系统的时候调用 AfxInitRichEdit就可以了!
hitwd2000 2001-10-16
  • 打赏
  • 举报
回复
好象是缺少stdafx.h
skyonsky 2001-10-16
  • 打赏
  • 举报
回复
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

16,551

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC相关问题讨论
社区管理员
  • 基础类社区
  • Creator Browser
  • encoderlee
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

        VC/MFC社区版块或许是CSDN最“古老”的版块了,记忆之中,与CSDN的年龄几乎差不多。随着时间的推移,MFC技术渐渐的偏离了开发主流,若干年之后的今天,当我们面对着微软的这个经典之笔,内心充满着敬意,那些曾经的记忆,可以说代表着二十年前曾经的辉煌……
        向经典致敬,或许是老一代程序员内心里面难以释怀的感受。互联网大行其道的今天,我们期待着MFC技术能够恢复其曾经的辉煌,或许这个期待会永远成为一种“梦想”,或许一切皆有可能……
        我们希望这个版块可以很好的适配Web时代,期待更好的互联网技术能够使得MFC技术框架得以重现活力,……

试试用AI创作助手写篇文章吧