不谦而失天下意思:C程序版本问题,在6.0下可以正常调试的代码,到了8.0之后报好多错,如何解决?

来源:百度文库 编辑:高校问答 时间:2024/05/09 14:06:47
c:\060707外盘及期货扫描程序\protocol.h(69) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

错误类似这样的,帮个忙~~高手,在线等答案!~
我已经改过了INT的问题,但是出现三个
c:\060707外盘及期货扫描程序\hidenetwnd.cpp(120) : error C2440: 'static_cast' : cannot convert from 'LRESULT (__thiscall CHideNetWnd::* )(WPARAM,LPARAM)' to 'void (__thiscall CWinThread::* )(WPARAM,LPARAM)'
非常了解C开发环境的高手请加QQ56747854
None of the functions with this name in scope match the target type
Func.cpp

8.0已经禁止隐式 int 类型!搜索const,如果没指定类型的全改成const int!新的问题具体的说就是把ON_THREAD_MESSAGE消息映射里所调用的函数返回值全部改成void,要修改一下代码了!还没解决???那我在具体的说就是线程消息处理函数只能声明为void的类型啊,举例:void MyThreadHandler1(WPARAM, LPARAM).这个方法行不通???

const ACTIVE_INFO = 9401; // 存活包通知
写成
const int ACTIVE_INFO = 9401; // 存活包通知

试试.

编译器叫你加int就加上吧,还有什么办法。