如何在 Windows 中创建 Virtual Com1 端口?

如何在 Windows 中创建 Virtual Com1 端口?

问题描述:

我正在开发一个移动应用程序以在袖珍电脑上运行.我们有一个移动打印机和刷卡,它使用 com1 发送和获取信息.我正在使用设备模拟器并想在没有打印机的情况下进行测试.如何创建一个虚拟的 com1 端口以正确读取和读取?我试过 com0com 但设备模拟器不会将其设置为串行 0.

I am developing a mobile app to run on a pocketpc. We have a mobile printer and card swipe that uses com1 to send and get info. I'm using the device emulator and want to test without the printer. How do I create a virtual com1 port to right to and read from? I tried com0com but the device emulator will not set that as serial 0.

这不是一个直接的答案,但如果您感到绝望,我有一个朋友使用 Detours 将与 COM 接口相关的输出重定向到他无法编辑另一个程序的源时所需的位置.

This isn't a direct answer, but if you get desperate enough, I had a friend use Detours to redirect output relating to COM interfaces to where he wanted it when he couldn't edit another program's source.