WINDOWS核心编程 是名著,这里就不多说了,我从
ftp://pub:[email protected]/Pub/Code/WINDOWS核心编程源码.rar
下在了WINDOWS核心编程源码
ErrorShow
运行第一个程序,老是有6个问题
--------------------Configuration: 01 ErrorShow - Win32 Debug--------------------
Compiling...
ErrorShow.cpp
You are not using the latest Platform SDK header/library 
files. This may prevent the project from building correctly.
c:\documents and settings\杨星宽\桌面\专业书籍\当前正在看的书\windows核心编程源码\cmnhdr.h(212) : error C2065: 'GetWindowLongPtr' : undeclared identifier
c:\documents and settings\杨星宽\桌面\专业书籍\当前正在看的书\windows核心编程源码\cmnhdr.h(212) : error C2065: 'GWLP_HINSTANCE' : undeclared identifier
c:\documents and settings\杨星宽\桌面\专业书籍\当前正在看的书\windows核心编程源码\01-errorshow\errorshow.cpp(83) : error C2065: 'PCTSTR' : undeclared identifier
c:\documents and settings\杨星宽\桌面\专业书籍\当前正在看的书\windows核心编程源码\01-errorshow\errorshow.cpp(83) : error C2146: syntax error : missing ')' before identifier 'LocalLock'
c:\documents and settings\杨星宽\桌面\专业书籍\当前正在看的书\windows核心编程源码\01-errorshow\errorshow.cpp(83) : error C2059: syntax error : ')'
c:\documents and settings\杨星宽\桌面\专业书籍\当前正在看的书\windows核心编程源码\01-errorshow\errorshow.cpp(125) : error C2664: 'DialogBoxParamA' : cannot convert parameter 4 from 'long (struct HWND__ *,unsigned int,unsigned int,long)' to 'int (__s
tdcall *)(struct HWND__ *,unsigned int,unsigned 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)
第一和2个停在                      //
inline void chSETDLGICONS(HWND hwnd, int idi) {
   SendMessage(hwnd, WM_SETICON, TRUE,  (LPARAM) 
      LoadIcon((HINSTANCE) GetWindowLongPtr(hwnd, GWLP_HINSTANCE), 
         MAKEINTRESOURCE(idi)));
   SendMessage(hwnd, WM_SETICON, FALSE, (LPARAM) 
      LoadIcon((HINSTANCE) GetWindowLongPtr(hwnd, GWLP_HINSTANCE), 
      MAKEINTRESOURCE(idi)));
}
3,4,5在      if (hlocal != NULL) {
         SetDlgItemText(hwnd, IDC_ERRORTEXT, (PCTSTR) LocalLock(hlocal));
         LocalFree(hlocal);
      } else {
6在
     SendMessage(hwnd, ESM_POKECODEANDLOOKUP, _ttoi(pszCmdLine), 0);
   } else {
      DialogBoxParam(hinstExe, MAKEINTRESOURCE(IDD_ERRORSHOW), 
         NULL, Dlg_Proc, _ttoi(pszCmdLine));
   }
大家如果有时间,帮忙看看怎么才能在我机器上运行,由于代码太多,所有没有贴出来。
自己