?
Solved

High numbered COM ports not available to MSComm control

Posted on 2004-04-20
5
Medium Priority
?
709 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 2000 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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
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…
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…

777 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