Solved

High numbered COM ports not available to MSComm control

Posted on 2004-04-20
5
706 Views
Last Modified: 2013-11-25
I have an app that sits on a Windows Terminal Server and uses what is effectively a modem bank through a piece of kit called SpartaCom MPTS.  This makes the modems available on high COM port numbers - in my situation that range is currently COM21 to COM64.

However, according to all the documentation I can find, the maximum setting for the CommPort property on the MSComm control is 16.  We can arrange for some COM ports to fall below this threshold but the idea is to make a huge range available to the program so that it can perform as many outgoing calls as possible, so we need to exceed this (apparently arbitrary) threshold.

Does anyone know of either a way of tweaking the control to accept high numbered COM ports, or a similar control that provides this functionality as well as the standard MSComm functionality, or a different way of doing it (perhaps using API calls)?

Lots of points but I intend to be picky if the answer falls into either of the latter two options...

Cheers
B
0
Comment
Question by:Belazir
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 43

Accepted Solution

by:
TimCottee earned 500 total points
ID: 10867470
Hi Belazir,

I think you are going to have to be picky. Personally I would look into the SAX comm control which is directly compatible codewise with the MSComm control but I believe allows access to the higher numbered comm ports along with a number of other enhancements.

http://www.sax.net/activex/comm/

Tim Cottee
Brainbench MVP for Visual Basic
http://www.brainbench.com
0
 

Author Comment

by:Belazir
ID: 10868004
Curses

I think that's exactly what I need - time to put together an expenditure justification...

If you don't mind Tim, I'll keep the question open for a couple of days and see if anyone has any sharp ideas that are a little less expensive but my feeling is that's unlikely.  Failing that I'll try and wangle the cash.

Cheers
B
0
 
LVL 43

Expert Comment

by:TimCottee
ID: 10868037
No problem at all Neil, good luck with that justification.

Tim.
0
 

Author Comment

by:Belazir
ID: 10961240
Looks like that's the way it's going, I've a further use for the SaxComm object as well in replacing the terminal emulator we currently use.

Cheers Tim, seems a lot of points for so little effort but I'm generous like that  : )
0
 
LVL 43

Expert Comment

by:TimCottee
ID: 10966498
Glad to have helped no matter how little effort. Have a good bank holiday weekend, or perhaps by the time you read this you will have had the weekend.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question