我本想用WINIO在WIN2000下作一个并口数据采集,但不知为什么,总出现这个错误:
 "Could not execute:Invalid directory(Win32 error 267)",是不是系统问题?

解决方案 »

  1.   

    怎么没人回呀可以再加分,按帮助我写一个程序如下,却出现很多错误再下.
    #include "stdafx.h"
    #include "WinIo.h"int main(int argc, char* argv[])
    {
    printf("Hello World!\n");
    if(InitializeWinIo())
    printf("please in");
    getch(); if(ShutdownWinIo())
    printf("out");
    return 0;
    }
    ---Configuration: winio - Win32 Debug--------------------
    Compiling...
    winio.cpp
    e:\caijun\vc\winio\winio.h(14) : error C2143: syntax error : missing ';' before '__stdcall'
    e:\caijun\vc\winio\winio.h(14) : error C2501: 'PBYTE' : missing storage-class or type specifiers
    e:\caijun\vc\winio\winio.h(14) : error C2146: syntax error : missing ')' before identifier 'pbPhysAddr'
    e:\caijun\vc\winio\winio.h(14) : warning C4229: anachronism used : modifiers on data are ignored
    e:\caijun\vc\winio\winio.h(14) : error C2501: 'MapPhysToLin' : missing storage-class or type specifiers
    e:\caijun\vc\winio\winio.h(14) : error C2059: syntax error : ')'
    e:\caijun\vc\winio\winio.h(15) : error C2065: 'HANDLE' : undeclared identifier
    e:\caijun\vc\winio\winio.h(15) : error C2146: syntax error : missing ')' before identifier 'PhysicalMemoryHandle'
    e:\caijun\vc\winio\winio.h(15) : warning C4229: anachronism used : modifiers on data are ignored
    e:\caijun\vc\winio\winio.h(15) : error C2491: 'UnmapPhysicalMemory' : definition of dllimport data not allowed
    e:\caijun\vc\winio\winio.h(15) : warning C4800: 'int' : forcing value to bool 'true' or 'false' (performance warning)
    e:\caijun\vc\winio\winio.h(15) : error C2059: syntax error : ')'
    e:\caijun\vc\winio\winio.h(16) : error C2146: syntax error : missing ')' before identifier 'pbPhysAddr'
    e:\caijun\vc\winio\winio.h(16) : warning C4229: anachronism used : modifiers on data are ignored
    e:\caijun\vc\winio\winio.h(16) : error C2491: 'GetPhysLong' : definition of dllimport data not allowed
    e:\caijun\vc\winio\winio.h(16) : warning C4800: 'int' : forcing value to bool 'true' or 'false' (performance warning)
    e:\caijun\vc\winio\winio.h(16) : error C2059: syntax error : ')'
    e:\caijun\vc\winio\winio.h(17) : error C2146: syntax error : missing ')' before identifier 'pbPhysAddr'
    e:\caijun\vc\winio\winio.h(17) : warning C4229: anachronism used : modifiers on data are ignored
    e:\caijun\vc\winio\winio.h(17) : error C2491: 'SetPhysLong' : definition of dllimport data not allowed
    e:\caijun\vc\winio\winio.h(17) : warning C4800: 'int' : forcing value to bool 'true' or 'false' (performance warning)
    e:\caijun\vc\winio\winio.h(17) : error C2059: syntax error : ')'
    e:\caijun\vc\winio\winio.h(18) : error C2065: 'WORD' : undeclared identifier
    e:\caijun\vc\winio\winio.h(18) : error C2146: syntax error : missing ')' before identifier 'wPortAddr'
    e:\caijun\vc\winio\winio.h(18) : warning C4229: anachronism used : modifiers on data are ignored
    e:\caijun\vc\winio\winio.h(18) : error C2491: 'GetPortVal' : definition of dllimport data not allowed
    e:\caijun\vc\winio\winio.h(18) : warning C4800: 'int' : forcing value to bool 'true' or 'false' (performance warning)
    e:\caijun\vc\winio\winio.h(18) : error C2059: syntax error : ')'
    e:\caijun\vc\winio\winio.h(19) : error C2146: syntax error : missing ')' before identifier 'wPortAddr'
    e:\caijun\vc\winio\winio.h(19) : warning C4229: anachronism used : modifiers on data are ignored
    e:\caijun\vc\winio\winio.h(19) : error C2491: 'SetPortVal' : definition of dllimport data not allowed
    e:\caijun\vc\winio\winio.h(19) : warning C4800: 'int' : forcing value to bool 'true' or 'false' (performance warning)
    e:\caijun\vc\winio\winio.h(19) : error C2059: syntax error : ')'
    e:\caijun\vc\winio\winio.h(20) : error C2065: 'PSTR' : undeclared identifier
    e:\caijun\vc\winio\winio.h(20) : error C2146: syntax error : missing ')' before identifier 'pszWinIoDriverPath'
    e:\caijun\vc\winio\winio.h(20) : warning C4229: anachronism used : modifiers on data are ignored
    e:\caijun\vc\winio\winio.h(20) : error C2491: 'InstallWinIoDriver' : definition of dllimport data not allowed
    e:\caijun\vc\winio\winio.h(20) : warning C4800: 'int' : forcing value to bool 'true' or 'false' (performance warning)
    e:\caijun\vc\winio\winio.h(20) : error C2059: syntax error : ')'
    e:\caijun\vc\winio\winio.h(24) : error C2146: syntax error : missing ';' before identifier 'hDriver'
    e:\caijun\vc\winio\winio.h(24) : fatal error C1004: unexpected end of file found
    Error executing cl.exe.winio.exe - 28 error(s), 13 warning(s)