Solved

High numbered COM ports not available to MSComm control

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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

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…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

744 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

11 Experts available now in Live!

Get 1:1 Help Now