Quantcast Making a Delphi GUI Need Some Help - digitalFAQ.com Forums [Archives]
  #1  
04-09-2004, 03:44 AM
Zyphon Zyphon is offline
Free Member
 
Join Date: Oct 2003
Location: London, England (UK)
Posts: 1,035
Thanks: 0
Thanked 0 Times in 0 Posts
Hi Guys,

I bought Delphi 7 a couple of months ago but have not really used it since I purchased it through lack of time.

Now that I have some time on my hands i wanted to make a GUI for a command line program just to practice on.

What I wanted to know is how can I tell Delphi to make a DOS Window pop up (Like Vmesquita's DIKO has) so that I can see exactly whats going on in the DOS window like progress and such?

Thanks in advance.
__________________
Regards.

Michael.
Reply With Quote
Someday, 12:01 PM
admin's Avatar
Site Staff / Ad Manager
 
Join Date: Dec 2002
Posts: 42
Thanks: ∞
Thanked 42 Times in 42 Posts
  #2  
04-09-2004, 10:47 AM
kwag kwag is offline
Free Member
 
Join Date: Apr 2002
Location: Puerto Rico, USA
Posts: 13,537
Thanks: 0
Thanked 0 Times in 0 Posts
What you're talking about is called "spawning" or running an external program
In C/C++, it's called the "exec" family of functions ( http://hpcf.nersc.gov/vendor_docs/ib...etrf1/exec.htm ). I'm not sure what's the name on Delphi, but it's the same functionality.
You "run" an external program, in this case command line tools like BeSweet, DIKumcizer, etc., and then you "wait" for the program to exit.

-kwag
Reply With Quote
  #3  
04-09-2004, 11:19 AM
vmesquita vmesquita is offline
Invalid Email / Banned / Spammer
 
Join Date: May 2003
Posts: 3,726
Thanks: 0
Thanked 0 Times in 0 Posts
If you want to know how it's done in C++, I can show you the functions used (they're actually three, depending on some specific problems each command-line tool have). PM me if you are interested. Unfortunatelly, my skills in Delphi are near none..
Reply With Quote
  #4  
04-10-2004, 01:26 AM
muaddib muaddib is offline
Free Member
 
Join Date: Jun 2002
Location: São Paulo - Brasil
Posts: 879
Thanks: 0
Thanked 0 Times in 0 Posts
There are several ways to call an external application with delphi.
I think the easiest way is to create a variable of type TFileRun.
Let’s say that you create a "var F: TFileRun"
Now you can set (for an example):

Code:
F.Directory  := 'file path';
F.FileName   := 'file name';
F.Parameters := 'parameters';
(and some others)
F.Execute; // to execute F
You can execute any file (not just an exe). If the file is associated with any app, then this app will be executed. I mean you can execute a TXT file and this file will be opened with NotePad (for example).
To control how the external application’s window appears (minimized, maximized, hidden, and so on), use the ShowCmd property.
Reply With Quote
  #5  
04-12-2004, 03:33 AM
Zyphon Zyphon is offline
Free Member
 
Join Date: Oct 2003
Location: London, England (UK)
Posts: 1,035
Thanks: 0
Thanked 0 Times in 0 Posts
Thanks for your replies and the info provided guys, sorry it took so long to get back to you ive been away over the Easter Period.

This is just a quick post as im on my way out soon.

Thanks again ill read these posts in depth and do some testing and ask you guys for more help to get me started if you dont mind of course.
__________________
Regards.

Michael.
Reply With Quote
  #6  
04-12-2004, 03:38 PM
Zyphon Zyphon is offline
Free Member
 
Join Date: Oct 2003
Location: London, England (UK)
Posts: 1,035
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by vmesquita
If you want to know how it's done in C++, I can show you the functions used (they're actually three, depending on some specific problems each command-line tool have). PM me if you are interested. Unfortunatelly, my skills in Delphi are near none..
I think I will send you a PM also vmesquita as I would love to know how to do this in C++ as I can use that in Delphi.

Im sending PM right now.
__________________
Regards.

Michael.
Reply With Quote
  #7  
07-05-2004, 04:49 PM
MrTibs MrTibs is offline
Free Member
 
Join Date: Aug 2002
Location: Canada
Posts: 200
Thanks: 0
Thanked 0 Times in 0 Posts
I've done this quite a bit. If you still need some help, I can point you to some Delphi source code.
Reply With Quote
  #8  
07-06-2004, 01:08 AM
incredible incredible is offline
Free Member
 
Join Date: May 2003
Location: Germany
Posts: 3,189
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to incredible
Nice! To see you in here again MrTibs!
Reply With Quote
  #9  
07-06-2004, 02:05 AM
Zyphon Zyphon is offline
Free Member
 
Join Date: Oct 2003
Location: London, England (UK)
Posts: 1,035
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by MrTibs
I've done this quite a bit. If you still need some help, I can point you to some Delphi source code.
Thanks buddy, at the moment Ive been really busy both at work and in my private life but when all quietens down I shall ask definately ask for your assistence.
__________________
Regards.

Michael.
Reply With Quote
Reply




Similar Threads
Thread Thread Starter Forum Replies Last Post
Delphi: Pascal conversion of avisynth_c.h GFR Avisynth Scripting 6 09-16-2005 12:46 PM
Delphi command to control another application? GFR Avisynth Scripting 6 01-26-2004 07:14 AM
Delphi: PicSwitch v1.0.4 (beta) vhelp Avisynth Scripting 11 03-11-2003 10:41 PM
Automated file prediction written in Delphi black prince Avisynth Scripting 0 02-24-2003 11:52 PM
DLL - A Delphi Ex with vmath.dll (small steps) vhelp Avisynth Scripting 2 02-10-2003 12:54 AM

Thread Tools



 
All times are GMT -5. The time now is 06:46 AM  —  vBulletin © Jelsoft Enterprises Ltd