none
VS2013创建一个空项目 添加WinIo.h 结果 显示很多未声明的标识符! RRS feed

  • 问题

  • #ifndef WINIO_H
    #define WINIO_H
    
    #ifdef WINIO_DLL
    #define WINIO_API _declspec(dllexport)
    #else
    #define WINIO_API _declspec(dllimport)
    #endif
    
    extern "C"
    {
      WINIO_API bool _stdcall InitializeWinIo();
      WINIO_API void _stdcall ShutdownWinIo();
      WINIO_API PBYTE _stdcall MapPhysToLin(PBYTE pbPhysAddr, DWORD dwPhysSize, HANDLE *pPhysicalMemoryHandle);
      WINIO_API bool _stdcall UnmapPhysicalMemory(HANDLE PhysicalMemoryHandle, PBYTE pbLinAddr);
      WINIO_API bool _stdcall GetPhysLong(PBYTE pbPhysAddr, PDWORD pdwPhysVal);
      WINIO_API bool _stdcall SetPhysLong(PBYTE pbPhysAddr, DWORD dwPhysVal);
      WINIO_API bool _stdcall GetPortVal(WORD wPortAddr, PDWORD pdwPortVal, BYTE bSize);
      WINIO_API bool _stdcall SetPortVal(WORD wPortAddr, DWORD dwPortVal, BYTE bSize);
      WINIO_API bool _stdcall InstallWinIoDriver(PSTR pszWinIoDriverPath, bool IsDemandLoaded = false);
      WINIO_API bool _stdcall RemoveWinIoDriver();
    }
    
    extern bool IsNT;
    extern HANDLE hDriver;
    extern bool IsWinIoInitialized;
    
    bool _stdcall StartWinIoDriver();
    bool _stdcall StopWinIoDriver();
    
    #endif
    
    里面的PBYTE 、WORD等都提示未声明标识符!求助为什么、?同事的VS2008就不会出现这样问题
    
    2013年10月17日 2:42

答案

全部回复