home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DP Tool Club 16
/
CD_ASCQ_16_0994.iso
/
news
/
4611
/
fw16d.ins
/
SAMPLES
/
TESTVID.PRG
< prev
next >
Wrap
Text File
|
1994-04-11
|
2KB
|
59 lines
// En este ejercicio vamos a utilizar las extensiones de Microsoft Windows
// para Video. No necesitas de ningún hardware adicional, pero sí tienes que
// haber instalado los drivers de video.
// Esto es una muestra de cómo debes de configurar tu SYSTEM.INI
// en WINDOWS para tener VIDEO
// Copy the DRVs and DLL we provide to your WINDOWS\SYSTEM directory
// Those DRV and DLL are (c) Microsoft. But they can be freely
// distributed.
// You should include those lines in your SYSTEM.INI
/*
[mci]
WaveAudio=speaker.drv
Sequencer=mciseq.drv
CDAudio=mcicda.drv
avivideo=mciavi.drv <--------- Esta es la que importa
[drivers]
timer=timer.drv
midimapper=midimap.drv
Wave=speaker.drv
VIDC.MSVC=msvidc.drv <--------- Esta es la que importa
*/
#include "FiveWin.ch"
static oWnd
//----------------------------------------------------------------------------//
function Main()
DEFINE WINDOW oWnd FROM 1, 5 TO 20, 60 TITLE "Video Support!!!"
SET MESSAGE OF oWnd TO "FiveWin 1.5 - Media Control Interface"
ACTIVATE WINDOW oWnd ;
ON INIT SayVideo()
return
//----------------------------------------------------------------------------//
function SayVideo()
local oVideo
@ 2, 2 VIDEO oVideo FILE "pajaro.avi" SIZE 200, 200 OF oWnd
@ 2, 40 BUTTON "&Play" SIZE 50, 20 OF oWnd ACTION oVideo:Play( 1, 100 )
return
//----------------------------------------------------------------------------//