how can I launch a windows program from my windows program 
Author Message
 how can I launch a windows program from my windows program

I am trying to start an other program from my own program. In DOS you
can use EXEC but it is part of the DOS-unit and it is not in the
WINDOS-unit. I am using BP7.0 with Object Windows

Can anybody help me with this problem?

greetz Leon



Wed, 18 Jun 1902 08:00:00 GMT  
 how can I launch a windows program from my windows program

Quote:

> I am trying to start an other program from my own program. In DOS you
> can use EXEC but it is part of the DOS-unit and it is not in the
> WINDOS-unit. I am using BP7.0 with Object Windows

> Can anybody help me with this problem?

> greetz Leon


Try WinExec()?

Joe

--
Joe C. Hecht
Borland Delphi Developer Support Group
http://www.borland.com



Wed, 18 Jun 1902 08:00:00 GMT  
 how can I launch a windows program from my windows program

   In Delphi, we have WinExec and ShellExecute.

   I'm almost sure that you can call the first but not sure for the
second.

   (the ShellExecute function is in ShellAPI unit -in Delphi, of course-)


Quote:
>I am trying to start an other program from my own program. In DOS you
>can use EXEC but it is part of the DOS-unit and it is not in the
>WINDOS-unit. I am using BP7.0 with Object Windows

>Can anybody help me with this problem?

>greetz Leon


--

          ___                                              ___
          L_|_                                            _|_J
         ( -O>                                            <O- )
      ___//\J  __________________________________________  L/\\___
     //-,\    |                                          |    /,-\\
    || / \\___L   AVONTURE Christophe (c) AVC Software   J___// \ ||

 / \ //\\.    |__________________________________________|    .//\\ / \
|_/\'/  ||                                                    ||  \'/\_|
     '   ||_         "Make sure that, always!, you            _||   '
         |__)       reply to my private mail adress"         (__|

Delphi Super Page: http://sunsite.icm.edu.pl/archive/delphi/_index.html
Delphi Super Site: http://sunsite.icm.edu.pl/~robert/delphi
Delphi Others:     http://www.coast.net/~jkeller
                   http://www.pobox.com/~bstowers/delphi

 "Postings are personnal, and don't reflect Belgacom's opinion"



Wed, 18 Jun 1902 08:00:00 GMT  
 how can I launch a windows program from my windows program


Quote:
>I am trying to start an other program from my own program. In DOS you
>can use EXEC but it is part of the DOS-unit and it is not in the
>WINDOS-unit. I am using BP7.0 with Object Windows
>Can anybody help me with this problem?
>greetz Leon


Hmmm, I gues that in Winprocs unit is WinExec, a function from Win API

function WinExec (CmdLine : PChar; CmdShow : Word):Word;

Where CmdLine (PChar Pointer to an ASCIIZ) is an ASCIIZ String with
the name and parameters of the program you wanna run and CmdShow says
the way to execute or load it.

Regards



Wed, 18 Jun 1902 08:00:00 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. Problem to run a Window 3.1 program on Windows NT

2. Detecting Windows from non-Windows program

3. Creating Windows Program group from Pascal program

4. HELP: Launching a Windows Application from Delphi v2.0

5. BP hangs when launched from windows

6. How to launch windows' screensaver

7. Launch Dos Program with Turbo Vision

8. How to launch program and then wait?

9. HELP, Launching program

10. Calling CRT windows as child windows of main window

11. source code for a windows program

12. Getting a list of running Windows programs

 

 
Powered by phpBB® Forum Software