Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Mscomm and dialup

Status
Not open for further replies.

roswell

Programmer
Mar 18, 2001
26
PH
Is it possible to use mscomm to be able to do a Dialup application? Please let me know how. Thanks
 
Yes you can.
Add MsComm control to the project
Open for Output, make sure you use correct CommPort settings
Send AT codes per your Modem handbook

If the number to call is 555-1234 then usually to dial up you need to send "ATDT 5551234," but check for your modem. Some need an extra semicolon to return control
________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first

'People who live in windowed environments shouldn't cast pointers.'
 
Thanks for your answer. I was able to dial the number but this doesn't connect me to the Internet. Maybe because I haven't send my username and password. Do you know how I can do it?
 
roswell

Did none of the suggestions in thread222-437874 help?

It is often better to start only 1 thread in the forums as to do so saves many people their valuable time. I see there are 3 threads started with the same question.

Matt
 
roswell
>Nope

Perhaps you could offer a little more information as to why none helped.

I have just looked up MSCOMM control in MSDN and I quote from the preamble:

"The MSComm control provides serial communications for your application by allowing the transmission and reception of data through a serial port."

True, you can use a serial port to control a modem using hayes type commands ("ATDT 1234-5555" or similar). But the MSComm control does not encompass PPP, SLIP or any other TCPIP based protocol.

I suggest that You are using the wrong control for what you want to do

That is why I suggested in Thread222-437874 that you download the socket wrench set of controls. One member of this set is a DIAL-UP NETWORKING CONTROL. They are also free!

Matt



 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top