Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Programming Talk / C++ / C# - How do I create a virtual com port?

Author
Message
Hawkblood
15
Years of Service
User Offline
Joined: 5th Dec 2009
Location:
Posted: 10th Jan 2011 21:31
Does anyone know? I have found several applications (that costs money), but no source or example code....

The fastest code is the code never written.
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 11th Jan 2011 18:31 Edited at: 11th Jan 2011 18:32
I'm fairly sure that you'd need to write a device driver for this - writing a device driver isn't for the faint of heart. That's probably why you have to pay for it.

Hawkblood
15
Years of Service
User Offline
Joined: 5th Dec 2009
Location:
Posted: 11th Jan 2011 23:50
Thanks for the reply. I hope you are wrong and someone knows.....

The fastest code is the code never written.
D Ogre
21
Years of Service
User Offline
Joined: 19th Nov 2003
Location:
Posted: 24th Feb 2011 02:25
I just caught this... I don't know if your still searching for info on this or not.

Drivers run in Kernel mode. They have a low level ring 0 access to the hardware (via the Kernel/HAL). With Windows Vista and Windows 7, you must have the driver signed by a qualified source in order for it to function properly (i.e. GlobalSign or VeriSign.) This is not cheap for an indy developer, enthusiast, or hobbyist. There is a yearly fee in the signing.

Try the Null-modem emulator (com0com) found at: http://com0com.sourceforge.net/

Follow the directions carefully for usage in Windows Vista and Windows 7. The UAC needs to be turned off and you will also need to enable driver test-signing.
Hawkblood
15
Years of Service
User Offline
Joined: 5th Dec 2009
Location:
Posted: 25th Feb 2011 17:34
Thanks for the info. I am currently using a driver by Eltima which does exactly what I want. I would have prefered to do it "at no cost", but we have already ordered the software license. The application is to be used in a military function, so I couldn't "skirt" around a license unless I could build it myself.

Once again, thanks.

The fastest code is the code never written.

Login to post a reply

Server time is: 2025-06-25 17:50:30
Your offset time is: 2025-06-25 17:50:30