Solved

WIN32 API C++ Modem Application

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

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 accepts files dropped from the Windows Explorer.  It also illustrates how to give your gadget a non-rectangular shape and how to add some nifty visual effects to text displayed in a your gadget.…
This article describes how to programmatically preset the "Pages per Sheet" option that's available with most printer drivers.   This setting lets you do "n-Up" printing, where two, four, or more pages are printed on each sheet of paper. If your …
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…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

896 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

15 Experts available now in Live!

Get 1:1 Help Now