日期:2014-05-19  浏览次数:20777 次

求助!!!!VS2005中关于"C++中不支持默认int类型"
首先在VC6.0中建立一个工程,
然后在VS2005中打开运行后报错如下
"错误 1 error   C4430:   缺少类型说明符   -   假定为   int。注意:   C++   不支持默认   int d:\program   files\bcgsoft\bcgcontrolbarpro\bcgcbpro\bcgpcustomizemenubutton.h 72
错误 2 error   C4430:   缺少类型说明符   -   假定为   int。注意:   C++   不支持默认   int d:\program   files\bcgsoft\bcgcontrolbarpro\bcgcbpro\bcgpcustomizemenubutton.h 72
错误 3 error   C4430:   缺少类型说明符   -   假定为   int。注意:   C++   不支持默认   int d:\program   files\bcgsoft\bcgcontrolbarpro\bcgcbpro\bcgpeditctrl.h 1939

但继续运行后可以显示与在VC6.0中相同的结果.
请问是什么原因啊?
我用的VC6.0  SP6 ,VS2005, BCGControlBar.Professional.v6.74;

------解决方案--------------------
在c#版块问c++?
------解决方案--------------------
任何函数都要有返回值类型修饰符的,就是没有返回值也要加void, 这么初级的问题也跑来问,先看看入门书吧