home *** CD-ROM | disk | FTP | other *** search
- program tmulti;
-
- uses
-
- vcrtu,
- vmultiu;
-
-
- Procedure MyMultiProc( Status: BYTE; Idata:pointer ); Far;
-
- BEGIN
-
- TextColor( Red );
- WriteLn(' Hi from MyMultiProc! ');
- TextColor( White );
-
- END;
-
- Procedure MyOtherMultiProc( Status:byte; Idata:pointer ); Far;
-
- BEGIN
-
- TextColor( BLUE );
- WriteLn(' This is my OTHER multiproc... ');
- TextColor( WHITE );
-
- END;
-
-
- Var
-
- Err : WORD;
-
- begin
-
- WriteLn;
- WriteLn('TMULTIU; VisionTools VMultiu tester; Version 0.9');
- WriteLn;
-
- { call the first procedure every 25/100ths of a second }
-
- VMultiProcNew( MyMultiProc,
- 25,
- 7,
- 'MYMULTI',
- NIL,
- Err );
-
- { call the other procedure every two seconds }
-
- VMultiProcNew( MyOtherMultiProc,
- 200,
- 7,
- 'MY-O-MULTI',
- NIL,
- Err );
-
- Repeat
-
- WriteLn(' - Hello, World');
-
- Until KeyPressed; { keypressed makes call to VMultiDo }
-
-
- end.
-
-