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?
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.
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!
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.