Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个按钮,我从房子周围的一个随机物品中取出,我想将它连接到我的 LPT 端口并检查它是否在 C++ 中被按下,以及它是否显示一条消息。
最好的办法是使用 inpout32.dll,这将使您能够从 LPT 端口读/写。硬件端口直接寻址的使用受到限制,dll 将使您能够绕过限制,因为它执行已内置在 dll 中的内部驱动程序,因此以间接方式与驱动程序通信。dll 可以从这里下载,这里有一个适用于 x64bit 平台的。
希望这会有所帮助,最好的问候,汤姆。
如果你想了解访问并口,这里有一个很好的资源:Lakeview Research