If I build samples\win32.exe, the avi plays fine under XP but does nothing under Vista.
What's the trick to get it working?
Thanks!
// playavi.prg
#INCLUDE "FIVEWIN.CH"
//----------------------
Function _Playavi( cDEFA )
LOCAL oDLG, oAVI
IF .not. FILE( cDEFA+"\DHEC.AVI" )
RETURN(NIL)
ENDIF
DEFINE DIALOG oDLG FROM 0,1 to 24,80 ;
COLOR "N/N,N/N,N/N,N/N,N/N" ;
TITLE "PCAS Data Entry" ;
STYLE nOr( WS_THICKFRAME, WS_POPUP )
@ 1,9.5 VIDEO oAVI FILE ( cDEFA+"\DHEC.AVI" ) of oDLG SIZE 158,100 NOBORDER
ACTIVATE DIALOG oDLG CENTERED ;
ON INIT ( oAVI:PLAY(), AviTimer( oDLG, 2.5) )
oDLG:END()
oAVI:END()
oDLG := NIL
oAVI := NIL
SysReFresh()
RETURN(NIL)
//-------------------
Static Func AviTimer(oDLG, nSECONDS )
LOCAL oTMR
DEFINE TIMER oTMR OF oDLG INTERVAL nSECONDS * 1000 ;
ACTION ( oDLG:END() )
ACTIVATE TIMER oTMR
RETURN(NIL)
// end playavi.prg
// Using system AVIs
#include "FiveWin.ch"
function Main()
local oDlg, oAvi
DEFINE DIALOG oDlg TITLE "Copying files..."
@ 1, 1 VIDEO oAvi FILE "..\avis\download.avi" SIZE 134, 30 NOBORDER
ACTIVATE DIALOG oDlg CENTERED ;
ON INIT oAvi:Play()
return nil
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: jair and 91 guests