?
Solved

Call to Windows Display Dialog

Posted on 2001-06-11
4
Medium Priority
?
157 Views
Last Modified: 2010-04-06
I want to call the Windows Display Dialog from my Delphi Application how can I do that ?

Thanx

Martins

0
Comment
Question by:Martins_
[X]
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
  • 2
4 Comments
 
LVL 8

Expert Comment

by:Cesario
ID: 6178560
Hi,

I think you have a call a Function from rundll32..
I hope I found some stuff in Knowledge base

Best Regards

Cesario
0
 
LVL 8

Expert Comment

by:Cesario
ID: 6178566
Hi Martins,

try it with this Code:

WinExec('rundll32 shell32.dll, Control_RunDLL desk.cpl, , 0', SW_SHOW);

0
 
LVL 2

Accepted Solution

by:
peymanz earned 200 total points
ID: 6178753
Just a comment.
You should not use WinExec. WinExec is provided only for backwards compatibility with 16 bit versions of windows. 32 bit versions of windows should call CreateProcess or the ShellExecute functions:

uses shellapi;

ShellExecute(form1.Handle,'open', 'rundll32', 'shell32.dll, Control_RunDLL desk.cpl, , 0', nil, SW_SHOW);

you can also change the first parameter to 0 if you want desktop to be the owner of the dialog.

regards
// peymanz
0
 

Expert Comment

by:djadja
ID: 6180707
peymanz...
"just another comment" <G>
SW_SHOWNORMAL should be used when displaying a window for the first time (as per stated in the help)! :)
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
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…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
Suggested Courses
Course of the Month11 days, 23 hours left to enroll

752 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