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 Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Additional Com Ports with MSCOMM control

Status
Not open for further replies.

Motor11

Technical User
Jul 30, 2002
60
US
Hello all,

Is there a way to access additional comm ports (say, up to com24) with the MSCOMM control? Is the API the way to go?

Regards,
Ryan
 
never needed to go as high as 24 but MSDN states

You can set value to any number between 1 and 16 at design time (the default is 1). However, the MSComm control generates error 68 (Device unavailable) if the port does not exist when you attempt to open it with the PortOpen property.

whether that means the port is limited to 16, or whether it is just limited to 16 at design time i dont know.

good luck


If somethings hard to do, its not worth doing - Homer Simpson
 
Thanks ADoozer,

Unfortunately it seems that the control is also limited to a max port of 16 -whether at design time or in code. I was just fishing for a work around. There are commercial Comm port controls that overcome this limitation, but the one that I've used was so buggy that I decided to go back to MSComm.

Regards,
Ryan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top