Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How manage more than 16 serial ports with VB6 ?

Status
Not open for further replies.

Nostrabs

Programmer
Feb 1, 2005
4
0
0
FR
Hi,

I use MSComm to integrate serial ports in my software,
but this time I have to manage 20 serial ports on the same
machine and MSComm is limited at 16 max.
Is there another componant which permit to access more than
16 serial ports ?
I hope you have good news for me.
Thnks by advance.


 
You can create a new MsComm for each port instead.

Set your MsComm control to have an index of 0, then load in 20 either dynamically or at design time.

Casper

There is room for all of gods creatures, "Right Beside the Mashed Potatoes".
 
Thanks for your answer,
but the limitation is in the CommPort field of MSComm : the number can't be superior to 16, even if you have only one serial port.
 
You can write to any serial port through the file system, using the CreateFile API to attach to port "\\.\COM##" where ## is the port #.
 
Thank you,

it's seams that is a good meaning to resolve my problem.
By the way I have found an activeX on the web which is compatible with MSComm but with a limitation at 256 like in Windows. It is a shareware. If somebody knows this activeX (from Banasoft) I will be happy to have your remarks concerning it.
 
Thank you for the link,

But I have developped a lot of user controls with MSComm,
then I need an activeX which is the more compatible with
the properties and events of MSComm.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top