home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DP Tool Club 24
/
CD_ASCQ_24_0995.iso
/
dos
/
prg
/
protect
/
noticew.txt
< prev
next >
Wrap
Text File
|
1995-07-08
|
1KB
|
26 lines
////////////////////////////////////////////////////////////////////////////
// Guide Reference de PROTECT sous Windows (Version Shareware) //
////////////////////////////////////////////////////////////////////////////
Pour une utilisation sous 'Windows 3.1' il vous suffit d'insérer:
'USES PIRATESW;'
Les procédures de testes restent identiques à celles utilisées sous DOS.
Voici une procédure qui réagit après l'envoie d'une commande appelant
Cm.TesterDisk.
PROCEDURE Tprotectwindow.TesterDisk(VAR Msg: Tmessage);
VAR S: ARRAY [0..50] OF CHAR;
VAR Number: INTEGER;
BEGIN
IF (TEST=TRUE) THEN Strpcopy(S,`GOOD DISK`)
ELSE Strpcopy(S,`BAD DISK`);
MessageBox(HWindow,S,`Résultat`,Mb_OK);
Number:=NUMERODISK;
Strpcopy(S,`Le compteur est à plus 3`);
IF (Number=$00) THEN Strpcopy(S,`Le compteur est à Zéro`);
IF (Number=$01) THEN Strpcopy(S,`Le compteur est à Un`)
IF (Number=$02) THEN Strpcopy(S,`Le compteur est à Deux`);
IF (Number=$03) THEN Strpcopy(S,`Le compteur est à Trois`);
MessageBox(HWindow,S,`Résultat`,Mb_OK);
END;