Solved

WIN32 API C++ Modem Application

Posted on 1997-07-12
2
2,002 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

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

Suggested Solutions

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…
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
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…

810 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