toshas » 02 июл 2004, 16:48
Проблемма в следующем: Пытаюсь скомпилировать примеры из книги Джеффри Рихтера Windows для проффесионалов
в MSVC 6.0 и получаю ошибки
Compiling...
ErrorShow.cpp
You are not using the latest Platform SDK header/library
files. This may prevent the project from building correctly.
d:\program files\programming applications\cmnhdr.h(213) : error C2065: 'GetWindowLongPtr' : undeclared identifier
d:\program files\programming applications\cmnhdr.h(213) : error C2065: 'GWLP_HINSTANCE' : undeclared identifier
d:\program files\programming applications\01-errorshow\errorshow.cpp(83) : error C2065: 'PCTSTR' : undeclared identifier
d:\program files\programming applications\01-errorshow\errorshow.cpp(83) : error C2146: syntax error : missing ')' before identifier 'LocalLock'
d:\program files\programming applications\01-errorshow\errorshow.cpp(83) : error C2059: syntax error : ')'
d:\program files\programming applications\01-errorshow\errorshow.cpp(125) : error C2664: 'DialogBoxParamA' : cannot convert parameter 4 from 'long (struct HWND__ *,unsigned int,unsigned int,long)' to 'int (__stdcall *)(struct HWND__ *,unsigned int,u
nsigned int,long)'
None of the functions with this name in scope match the target type
Error executing cl.exe.
01 ErrorShow.exe - 6 error(s), 0 warning(s)
что делать, помогите пожалуйста
Проблемма в следующем: Пытаюсь скомпилировать примеры из книги Джеффри Рихтера Windows для проффесионалов
в MSVC 6.0 и получаю ошибки
Compiling...
ErrorShow.cpp
You are not using the latest Platform SDK header/library
files. This may prevent the project from building correctly.
d:\program files\programming applications\cmnhdr.h(213) : error C2065: 'GetWindowLongPtr' : undeclared identifier
d:\program files\programming applications\cmnhdr.h(213) : error C2065: 'GWLP_HINSTANCE' : undeclared identifier
d:\program files\programming applications\01-errorshow\errorshow.cpp(83) : error C2065: 'PCTSTR' : undeclared identifier
d:\program files\programming applications\01-errorshow\errorshow.cpp(83) : error C2146: syntax error : missing ')' before identifier 'LocalLock'
d:\program files\programming applications\01-errorshow\errorshow.cpp(83) : error C2059: syntax error : ')'
d:\program files\programming applications\01-errorshow\errorshow.cpp(125) : error C2664: 'DialogBoxParamA' : cannot convert parameter 4 from 'long (struct HWND__ *,unsigned int,unsigned int,long)' to 'int (__stdcall *)(struct HWND__ *,unsigned int,u
nsigned int,long)'
None of the functions with this name in scope match the target type
Error executing cl.exe.
01 ErrorShow.exe - 6 error(s), 0 warning(s)
что делать, помогите пожалуйста