Board index » delphi » How to use WinExec (TPW 1.5)

How to use WinExec (TPW 1.5)

Hello!

I've got a little problem here and I hope you can help me: I use WinExec to
start a DOS-program (for example PKUNZIP, DIR,...). It work's fine, but how can
I start this programs in a window (which is symbolized). I've tried many of
sx_xxx constants, but whatever I do, the programs started up in fullscreen...

  Greetings...

                    Marco

                         Internet: MPe...@3Lands.fido.de

 

Re:How to use WinExec (TPW 1.5)


In article <MSGID_242=3A1000=2F16.8_31559...@Fido.DE>,
Marco_Pe...@p8.3lands.fido.de says...
Quote

>Hello!

>I've got a little problem here and I hope you can help me: I use
WinExec to
>start a DOS-program (for example PKUNZIP, DIR,...). It work's fine,
but how can
>I start this programs in a window (which is symbolized). I've tried
many of
>sx_xxx constants, but whatever I do, the programs started up in
fullscreen...

>  Greetings...

>                    Marco

>                         Internet: MPe...@3Lands.fido.de

>> Try invoking a Pif file that calls the Dos EXE file. In the Pif,

click on windowized rather than full-screen option. In your application
program code Winexec('appl.pif',sw_showminimized);

- Show quoted text -

Quote
>> Martin

Re:How to use WinExec (TPW 1.5)


In article <MSGID_242=3A1000=2F16.8_31559...@Fido.DE>, Marco_Pe...@p8.3lands.fido.de (Marco Peyer) writes:

Quote
>Hello!

>I've got a little problem here and I hope you can help me: I use WinExec to
>start a DOS-program (for example PKUNZIP, DIR,...). It work's fine, but how can
>I start this programs in a window (which is symbolized). I've tried many of
>sx_xxx constants, but whatever I do, the programs started up in fullscreen...

THAT's not actually part of WinExec(), but is controlled by the .PIF
settings for the particular DOS program, or by the settings in
_DEFAULT.PIF if you don't have custom .PIFs defined.  Open PIFEDIT.EXE,
load the relevant .PIF, and pick the "Display Usage/Full Screen" option.

Quote
>  Greetings...
>                    Marco
>                         Internet: MPe...@3Lands.fido.de

HTH

-* Stephen *-
Stephen Posey
University of New Orleans
Email  : S...@uno.edu
WWW    : http://www.uno.edu/~slp

Other Threads