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
Solved

WIN32 API C++ Modem Application

Posted on 1997-07-12
2
2,004 Views
Last Modified: 2013-12-03
I need to write a Visual C++ Console app to connect to another app using a moden to pass data (95 and NT4.0). I have extensive experience in using the comm ports. What would be the best (simplest)method. Should I just manualy control the modem or should I try using the TAPI. If I dont use the TAPI there appears to be some API functions that will handle alot of the modem communication issues such as GetCommProperties and GetCommConfig. However, I can not figure out how to open a communication resource other that COM1 or COM2 using the CreateFile() function. What name do I use in the call to CreateFile() in order to open a modem communication resource such that the provider sub type field in the COMMPROP or COMMCONFIG structures is PST_MODEM.
0
Comment
Question by:ist
  • 2
2 Comments
 
LVL 4

Accepted Solution

by:
md041797 earned 200 total points
ID: 1400701
I wrote a program using the modem for communication.  What I did was just opened the port using \.\\COMX.  This works great.  When I first started searching for a solution, I tried to figure out the PST_MODEM stuff, and I gave up after testing the COMX method.  I can send you the code if you are interested.  It's in OWL.  marc@officewizard.com.  In your reply, remind me of my post so I will know what you need.  (I get lots of requests).
0
 
LVL 4

Expert Comment

by:md041797
ID: 1400702
If my answer is insufficient, you should give me an F so your question will go back the queue to be answered by others.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This article shows how to make a Windows 7 gadget that extends its U/I with a flyout panel -- a window that pops out next to the gadget.  The example gadget shows several additional techniques:  How to automatically resize a gadget or flyout panel t…
zlib is a free compression library (a DLL) on which the popular gzip utility is built.  In this article, we'll see how to use the zlib functions to compress and decompress data in memory; that is, without needing to use a temporary file.  We'll be c…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

838 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