Articles   Members Online:
-Article/Tip Search
-News Group Search over 21 Million news group articles.
-Delphi/Pascal
-CBuilder/C++
-C#Builder/C#
-JBuilder/Java
-Kylix
Member Area
-Home
-Account Center
-Top 10 NEW!!
-Submit Article/Tip
-Forums Upgraded!!
-My Articles
-Edit Information
-Login/Logout
-Become a Member
-Why sign up!
-Newsletter
-Chat Online!
-Indexes NEW!!
Employment
-Build your resume
-Find a job
-Post a job
-Resume Search
Contacts
-Contacts
-Feedbacks
-Link to us
-Privacy/Disclaimer
Embarcadero
Visit Embarcadero
Embarcadero Community
JEDI
Links
How call a cpl application from delphi. Turn on/off line numbers in source code. Switch to Orginial background IDE or DSP color Comment or reply to this aritlce/tip for discussion. Bookmark this article to my favorite article(s). Print this article
22-Apr-04
Category
Shell API
Language
Delphi All Versions
Views
403
User Rating
6
# Votes
1
Replies
0
Publisher:
Revelli, Ivan
Reference URL:
revelli ivan
			In this example we explain how to call the mmsys.cpl from delphi using the 
ShellExecute procedure. The mmsys.cpl is the multimedia system from control panel.

To call a cpl application you need to execute the 'rundll32.exe' with a param that 
is the name of the cpl that you need.

Ex. you have a Tform with a btn :


Sample Code :

 
1   
2   implementation
3   
4    
5   
6   {$R *.dfm}
7   
8   uses shellapi;
9   
10   
11  
12  procedure TForm1.Button1Click(Sender: TObject);
13  
14  begin
15  
16    ShellExecute(Form1.Handle, nil, 'rundll32.exe','shell32.dll,Control_RunDLL 
17  mmsys.cpl'SHOW);
18  
19  end;
20  
21  end.


best rgds
          Ivan 
 

			
Vote: How useful do you find this Article/Tip?
Bad Excellent
1 2 3 4 5 6 7 8 9 10

 

Advertisement
Share this page
Advertisement
Download from Google

Copyright © Mendozi Enterprises LLC