Unit appexec

-------------------------------------------------------------------------------------} { An "application launcher" component for Delphi32. } { Copyright 1996, Patrick Brisacier and Jean-Fabien Connault. All Rights Reserved. } { This component can be freely used and distributed in commercial and private } { environments, provided this notice is not modified in any way. } { -------------------------------------------------------------------------------------} { Feel free to contact us if you have any questions, comments or suggestions at } { PBrisacier@mail.dotcom.fr (Patrick Brisacier) } { JFConnault@mail.dotcom.fr (Jean-Fabien Connault) } { You can always find the latest version of this component at: } { http://www.worldnet.net/~cycocrew/delphi/ } { -------------------------------------------------------------------------------------} { Date last modified: 08/07/96 } { -------------------------------------------------------------------------------------} { -------------------------------------------------------------------------------------} { TAppExec v1.01 } { -------------------------------------------------------------------------------------} { Description: } { A component that allows you to execute easily applications. } { Properties: } { property ChangeDir: Boolean; } { property ErrNo: Integer; } { property ExeName: String; } { property ExePath: String; } { property ExeParams: TStringList; } { property Wait: Boolean; } { property WindowState: TWindowState; } { Procedures and functions: } { procedure Clear; } { procedure Execute; } { function GetErrorString: string; } { } { See example contained in example.zip file for more details. } { -------------------------------------------------------------------------------------} { Revision History: } { 1.00: + Initial release } { 1.01: + Added support for french and english languages } { -------------------------------------------------------------------------------------

Classes

TAppExec -

Functions

Register - English Messages } {MSG_ERROR_DASH_1 = 'No execution'; MSG_ERROR_0 = 'System was out of memory, executable file was corrupt, or relocations were invalid'; MSG_ERROR_2 = 'File was not found'; MSG_ERROR_3 = 'Path was not found'; MSG_ERROR_5 = 'Attempt was made to dynamically link to a task, or there was a sharing or network-protection error'; MSG_ERROR_6 = 'Library required separate data segments for each task'; MSG_ERROR_8 = 'There was insufficient memory to start the application'; MSG_ERROR_10 = 'Windows version was incorrect'; MSG_ERROR_11 = 'Executable file was invalid.

Types

Constants

MSG_ERROR_0
MSG_ERROR_10
MSG_ERROR_11
MSG_ERROR_12
MSG_ERROR_13
MSG_ERROR_14
MSG_ERROR_15
MSG_ERROR_16
MSG_ERROR_19
MSG_ERROR_2
MSG_ERROR_20
MSG_ERROR_21
MSG_ERROR_3
MSG_ERROR_32_AND_MORE
MSG_ERROR_5
MSG_ERROR_6
MSG_ERROR_8
MSG_ERROR_DASH_1

Variables


Functions


procedure Register;

English Messages } {MSG_ERROR_DASH_1 = 'No execution'; MSG_ERROR_0 = 'System was out of memory, executable file was corrupt, or relocations were invalid'; MSG_ERROR_2 = 'File was not found'; MSG_ERROR_3 = 'Path was not found'; MSG_ERROR_5 = 'Attempt was made to dynamically link to a task, or there was a sharing or network-protection error'; MSG_ERROR_6 = 'Library required separate data segments for each task'; MSG_ERROR_8 = 'There was insufficient memory to start the application'; MSG_ERROR_10 = 'Windows version was incorrect'; MSG_ERROR_11 = 'Executable file was invalid. Either it was not a Windows application or there was an error in the .EXE image'; MSG_ERROR_12 = 'Application was designed for a different operating system'; MSG_ERROR_13 = 'Application was designed for MS-DOS 4.0'; MSG_ERROR_14 = 'Type of executable file was unknown'; MSG_ERROR_15 = 'Attempt was made to load a real-mode application (developed for an earlier version of Windows)'; MSG_ERROR_16 = 'Attempt to load second instance of an executable containing multiple data segments not marked read-only'; MSG_ERROR_19 = 'Attempt was made to load a compressed executable file. The file must be decompressed before it can be loaded'; MSG_ERROR_20 = 'Dynamic-link library (DLL) file was invalid. One of the DLLs required to run this application was corrupt'; MSG_ERROR_21 = 'Application requires 32-bit extensions'; MSG_ERROR_32_AND_MORE = 'No error';

Types


Constants

MSG_ERROR_0 = 'Système dépassé en capacité mémoire, exécutable corrompu, ou réallocations invalides'

MSG_ERROR_10 = 'Version de Windows incorrecte'

MSG_ERROR_11 = 'Exécutable invalide, application non Windows, ou erreur dans l''image du fichier .EXE'

MSG_ERROR_12 = 'Application écrite pour un système d''exploitation différent'

MSG_ERROR_13 = 'Application écrite pour MS-DOS 4.0'

MSG_ERROR_14 = 'Type d''exécutable inconnu'

MSG_ERROR_15 = 'Tentative de chargement d''une application en mode réel (développée pour une version antérieure de Windows)'

MSG_ERROR_16 = 'Tentative de chargement d''une seconde instance d''un exécutable contenant plusieurs segments de données non marqués en lecture seule'

MSG_ERROR_19 = 'Tentative de chargement d''un exécutable compressé. Le fichier doit être décompressé avant de pouvoir être chargé'

MSG_ERROR_2 = 'Fichier non trouvé'

MSG_ERROR_20 = 'Fichier Dynamic-link library (DLL) invalide. Une des DLLs requises pour exécuter cette application est corrompue'

MSG_ERROR_21 = 'Application nécessitant des extensions 32-bit'

MSG_ERROR_3 = 'Chemin non trouvé'

MSG_ERROR_32_AND_MORE = 'Pas d''erreur'

MSG_ERROR_5 = 'Tentative de liaison dynamique à une tâche, ou erreur de partage, ou erreur de protection réseau'

MSG_ERROR_6 = 'Librairie nécessitant des segments de données séparés pour chaque tâche'

MSG_ERROR_8 = 'Mémoire insuffisante pour démarrer l''application'

MSG_ERROR_DASH_1 = 'Pas d''exécution'

French Messages

Variables