Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

High numbered COM ports not available to MSComm control

Posted on 2004-04-20
5
Medium Priority
?
712 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 does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

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…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
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…
Suggested Courses

604 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