Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Start dialup network automatically

Posted on 1998-08-07
14
353 Views
Last Modified: 2010-04-04
Hello,all.

I want to start and end the dailup network automatically from my application.
My Os is Windows95.

Please help.

Syouchi
0
Comment
Question by:Syouchi
  • 6
  • 4
  • 3
  • +1
14 Comments
 
LVL 2

Expert Comment

by:saar071697
ID: 1361695
search the file of the dialer and run it with shellexec.
0
 
LVL 1

Expert Comment

by:venks
ID: 1361696
Dear syouchi
You have not mentioned what is the type of network to connect to.
I am detailing the procedure for RAS(Remote access services)
availble in windows 95.
There are two components Dial up (d ras.zip) and  TfnugryRASnotify components available in Torry's Delphi pages(Under the heading of communications) website which will provide all the necessary functions for dial up connections.
In this connection refer to  
http://www.experts-exchange.com/Q.10068423 
in which I have already answered a question regarding dial up connections.
Hope this solves your problem
Venks

0
 
LVL 10

Expert Comment

by:viktornet
ID: 1361697
To run it use....ShellExecute(....)

To stop it use this....
var
  hHandle : HWND;
begin
  hHandle := FindWindow(nil,PChar('Name Of The Form''s Caption'));//example 'Notepad'
  if hHanlde <> 0 then
    SendMessage(hHandle, WM_CLOSE, 0, 0);
end;
-------
That's all you need....

Regards,
Viktor Ivanov
0
Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

 

Author Comment

by:Syouchi
ID: 1361698
Thanks,Saar.

But I cannot understand how to use 'ShellExec API'.
What is the dial up program file's name?
I am just using dialup program in the Win95 My Computer,
not third party program.

And Please show me a sample.

Syouchi
0
 
LVL 10

Expert Comment

by:viktornet
ID: 1361699
Hello Syouchi.... I'm not sure but do you want to start a connection, or you just want to open the Dial-Up Networking folder and let the user choose the connection.....

Regards,
Viktor Ivanov
0
 

Author Comment

by:Syouchi
ID: 1361700
Sorry for my English.

I want to start dialup program and connect to Internet.
I mean, when I push the button on my program, I want to connect to E-mail server automatically and send a E-mail.

Syouchi.



0
 
LVL 10

Expert Comment

by:viktornet
ID: 1361701
Oh, so that what it is....try this....

Add this to your uses clause -> ShellAPI ....like

uses Windows, SysUtils,............, ShellAPI;

..and then this into the button's click event

ShellExecute(0,'open',PChar('viktor@megsinet.net'),nil,nil,SW_NORMAL);

//viktor@megsinet.net is my E-mail address
//This will start your default server... (ex.Netscape, Internet Explorer)... and you will be able to //send an E-mail....
//if you want to open a website just replace my e-mail address with the site like this.

ShellExecute(0,'open',PChar('http://www.yahoo.com'),nil,nil,SW_NORMAL);

//That's all there is to it...if you need any help just leave a comment or you can send me e-mail at //viktor@megsinet.net

Regards,
Viktor Ivanov
0
 

Author Comment

by:Syouchi
ID: 1361702
Very very sorry for my English.

I don't know Dial-Up Network is correct word.
Because My Win95 is Japanese version.

I will connect to internet by a modem.
When the button pushed on my app, Dial-up Network program start and dail-up network dialog open and modem line connect to a provider and E-mail is sended, I expect.

Thanks a lot, Viktor Ivanov.
ShellExecute(..) do not work.

Pleasee help.

Syouchi



 
0
 
LVL 1

Expert Comment

by:venks
ID: 1361703
Dear Syouchi
If you just just want to send an e mail use   a software like
Eudora Lite.If you want to use delphi to send e mail you have to do a lot of reading on dial up connections,RAS and e mail components that came with delphi or third party components(mostly free and availble from delphi super page under subheading communications)
Venks
0
 

Author Comment

by:Syouchi
ID: 1361704
I want to accept venks!!

I can solve this problem.

Thank you, all especially venks.




0
 

Author Comment

by:Syouchi
ID: 1361705
Hello.Linda.

I had solved this problem.
Because of venks' advices, I want to accept venks.

Syouchi.



0
 
LVL 10

Expert Comment

by:viktornet
ID: 1361706
Hey Syouchi, jusst wait until Venks comes back and put it as an answer, then you accept it :)

Regards,
Viktor Ivanov
0
 
LVL 1

Accepted Solution

by:
venks earned 50 total points
ID: 1361707
Dear syouchi
I am glad you could solve this problem.I have developed also a software for such a purpose and can go into depth with this dial up connection business.Hope you have gone through the question no Q.10068423  where I had even sent a component and other references.
Have you awarded the points already?
Yours sincerely
Venks
0
 

Author Comment

by:Syouchi
ID: 1361708
Thanks a lot, venks.
I will study RAS program more.

Syouchi.




0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Delphi Form ownership 4 113
Delphi 2 69
how to resize animated Gif image in delphi ? 1 35
FMX TEdit KeyUp handler detecting  "enter" key 4 14
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

829 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