Информационный сервер для программистов: Исходники со всего света. Паскальные исходники со всего света
  Powered by Поисковый сервер Яndex: Найдется ВСЁ!
На Главную Pascal Форум Информер Страны мира
   Приемы Вызова Программ    >>    dualex
   
 
 Dualexe - Produce Dual-mode DOS/Windows Executable   Brad Stowers 09.08.1994

Утилита, позволяющая скомбинировать в один выполняемый файл два приложения - одно для DOS, и второе - для Windows. Результирующий исполняемый модуль будет выполняться и в DOS и в Windows.
Combine a Windows and a DOS app together to produce "dual-mode" executable. This is an easy thing to do with most Windows C++ compilers but we Pascalers have been denied this "nicety" by Borland. NO LONGER!! Also, you needn't include just a DOS "stub" program. You can combine a full-blown DOS app with your Windows app.



15k 
 

(********************************************************************) (* *) (* DUALEXE.PAS *) (* 08/09/94 *) (* Brad Stowers *) (* CIS: 72733,3374 *) (* Internet: brad.stowers@delta.com *) (* *) (* This code first appeared (as far as I know) in the *) (* May 1994 issue of Windows/DOS Developers Journal in *) (* the Tech Tips section. It was writtenand contributed by: *) (* Paul Bixel *) (* CIS: 71055,423 *) (* Internet: Bixel_PS@salem.ge.com *) (* All credit for this program go to Mr. Bixel. *) (* I did nothing more than type it in (couldn't find it on *) (* the W/DDJ CIS forum library!), add the prompting for parameters,*) (* the conditional defines for Windows, and the primitive progress *) (* display. In the true spirit of DUALEXE, the included version *) (* of DUALEXE.EXE runs equally well under DOS or Windows. *) (********************************************************************) (* *) (* Combine a Windows and a DOS app together to produce "dual-mode" *) (* executable. This is an easy thing to do with most Windows *) (* C++ compilers but we Pascalers have been denied this "nicety" *) (* by Borland. NO LONGER!! Also, you needn't include just a DOS *) (* "stub" program. You can combine a full-blown DOS app with your *) (* Windows app. *) (* Pass in three parameters in this order: *) (* The DOS application file name and path. *) (* The Windows application file name and path. *) (* The file name and path you want the new EXE to have. *) (* If any parameters are omitted, you will be prompted for them. *) (* *) (********************************************************************)