Solved

High numbered COM ports not available to MSComm control

Posted on 2004-04-20
5
703 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
  • 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

911 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now