Solved

WIN32 API C++ Modem Application

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

SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

Question has a verified solution.

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

Suggested Solutions

This article describes how to add a user-defined command button to the Windows 7 Explorer toolbar.  In the previous article (http://www.experts-exchange.com/A_2172.html), we saw how to put the Delete button back there where it belongs.  "Delete" is …
What my article will show is if you ever had to do processing to a listbox without being able to just select all the items in it. My software Visual Studio 2008 crystal report v11 My issue was I wanted to add crystal report to a form and show…
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…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

733 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