winio中的WioTest怎么就不能用啊 我本想用WINIO在WIN2000下作一个并口数据采集,但不知为什么,总出现这个错误: "Could not execute:Invalid directory(Win32 error 267)",是不是系统问题? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 怎么没人回呀可以再加分,按帮助我写一个程序如下,却出现很多错误再下.#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.cppe:\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 specifierse:\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 ignorede:\caijun\vc\winio\winio.h(14) : error C2501: 'MapPhysToLin' : missing storage-class or type specifierse:\caijun\vc\winio\winio.h(14) : error C2059: syntax error : ')'e:\caijun\vc\winio\winio.h(15) : error C2065: 'HANDLE' : undeclared identifiere:\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 ignorede:\caijun\vc\winio\winio.h(15) : error C2491: 'UnmapPhysicalMemory' : definition of dllimport data not allowede:\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 ignorede:\caijun\vc\winio\winio.h(16) : error C2491: 'GetPhysLong' : definition of dllimport data not allowede:\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 ignorede:\caijun\vc\winio\winio.h(17) : error C2491: 'SetPhysLong' : definition of dllimport data not allowede:\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 identifiere:\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 ignorede:\caijun\vc\winio\winio.h(18) : error C2491: 'GetPortVal' : definition of dllimport data not allowede:\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 ignorede:\caijun\vc\winio\winio.h(19) : error C2491: 'SetPortVal' : definition of dllimport data not allowede:\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 identifiere:\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 ignorede:\caijun\vc\winio\winio.h(20) : error C2491: 'InstallWinIoDriver' : definition of dllimport data not allowede:\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 foundError executing cl.exe.winio.exe - 28 error(s), 13 warning(s) WM_PRINT消息在对话框里面可以用吗? 如何给基于CFrameWnd的窗口设置非客户区 菜鸟请教高手有关在VC++中使用DLL的问题!!! VC6编译链接时出现unresolved external symbol错误 一如既往散分:纪念南京大屠杀68周年 及时,快速 传屏幕???高手请进!!有重谢!! 目录浏览对话框 ADO访问access数据库的问题 一个事关终身的问题 CString如何转到char* 求助:怎样在VC.NET中用WIN32API编写屏幕保护! socket发送和接收顺序执行问题,请高手指点
#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)