BCB中使用Winio 在线等!!!

JaniceXu 2009-02-16 01:47:27
下面是WinIo帮助中写的WinIo在BCB中使用所要做的步骤,看得不太明白,还请高手指教:
1、Place winio.dll, winio.vxd and winio.sys in the directory where your application's executable file resides.
=〉这里所说的可执行文件是指BCB的可执行文件还是我写的程序的可执行文件呀?
2、Create a winio.lib file by running the IMPLIB utility that is bundled with C++ Builder.
=〉这里的winio.lib是可以用 cmd -> IMPLIB winio.lib winio.dll来生成吗?
3、Add the generated winio.lib to your project file.
=〉怎样将winio.lib 放到project 中? 直接复制粘贴??

4、Remove the WINIO_API constant from the function declarations in winio.h.
=〉我看见头文件中代码很受 如果删掉WINIO_API constant部分的话基本就没有什么代码了,是我下的文件不对?
5、Add the "#include "winio.h" statement to your source file.
6、Call InitializeWinIo.
7、Call the library's functions to access I/O ports and physical memory.
8、Call ShutdownWinIo.
也许问的问题很傻,各位别见笑哈...呵呵!
...全文
329 7 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
JaniceXu 2009-02-17
  • 打赏
  • 举报
回复
2、Create a winio.lib file by running the IMPLIB utility that is bundled with C++ Builder.
=〉这里的winio.lib是可以用 cmd -> IMPLIB winio.lib winio.dll来生成吗?
用Implib把winio转换为BCB的lib文件格式
=〉怎样转换??
我不懂电脑 2009-02-17
  • 打赏
  • 举报
回复
下面是WinIo帮助中写的WinIo在BCB中使用所要做的步骤,看得不太明白,还请高手指教:
1、Place winio.dll, winio.vxd and winio.sys in the directory where your application's executable file resides.
=〉这里所说的可执行文件是指BCB的可执行文件还是我写的程序的可执行文件呀?
是你自己正在写的可执行文件

2、Create a winio.lib file by running the IMPLIB utility that is bundled with C++ Builder.
=〉这里的winio.lib是可以用 cmd -> IMPLIB winio.lib winio.dll来生成吗?
用Implib把winio转换为BCB的lib文件格式

3、Add the generated winio.lib to your project file.
=〉怎样将winio.lib 放到project 中? 直接复制粘贴??
project-addd to project

4、Remove the WINIO_API constant from the function declarations in winio.h.
=〉我看见头文件中代码很受 如果删掉WINIO_API constant部分的话基本就没有什么代码了,是我下的文件不对?
是这个意思

5、Add the "#include "winio.h" statement to your source file.
在你源代码里加入winio头文件

6、Call InitializeWinIo.
调用初始化函数

7、Call the library's functions to access I/O ports and physical memory.
调用lib相关函数访问输入输出端口和物理内存

8、Call ShutdownWinIo.
调用关闭函数
JaniceXu 2009-02-17
  • 打赏
  • 举报
回复
问题解决了 谢谢各位!
fairchild811 2009-02-16
  • 打赏
  • 举报
回复
直接动态load .dll也可以吧
Behard 2009-02-16
  • 打赏
  • 举报
回复
1. 将那三个文件与你编译的 exe 放到同一个目录
2.... 就是 dll 编程方面的内容了 baidu BCB编写DLL终极手册
JaniceXu 2009-02-16
  • 打赏
  • 举报
回复
谢谢老师 可以说详细点吗?
yumikoo 2009-02-16
  • 打赏
  • 举报
回复
1,你写的EXE
2,运行IMPLIB绑定BCB
3,peoject-add project
4,删除winioapi
5,加入头文件到源程序
……

13,872

社区成员

发帖
与我相关
我的任务
社区描述
C++ Builder相关内容讨论区
社区管理员
  • 基础类社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧