来看看这个错误什么意思?
--------------------Configuration: Derived - Win32 Debug--------------------
Compiling resources...
Compiling...
StaticEx.cpp
D:\MyFiles\Projects\Derived\StaticEx.cpp(111) : error C2511: 'SetTextColor ' : overloaded member function 'unsigned long (void) ' not found in 'CStaticEx '
d:\myfiles\projects\derived\staticex.h(13) : see declaration of 'CStaticEx '
D:\MyFiles\Projects\Derived\StaticEx.cpp(123) : error C2511: 'SetBkColor ' : overloaded member function 'unsigned long (void) ' not found in 'CStaticEx '
d:\myfiles\projects\derived\staticex.h(13) : see declaration of 'CStaticEx '
EditEx.cpp
Generating Code...
Error executing cl.exe.
Derived.exe - 2 error(s), 0 warning(s)
谢谢~~~~~~~~~
[解决办法]
是不是对象或者变量的类型整错了???
[解决办法]
参数用错了,查一下,改过来就行了
[解决办法]
检查一下,是否照着书上的打错了?
COLORREF cr;
把函数贴出来看看。
[解决办法]
重载函数时参数类型未统一