I develop in VFP6 with Windows 2000 SP3. I used wscript especially for the purpose of calling external programs like PKZip. While waiting for PKZIP to finish, I added a form class to display an avi file using the Microsoft Animation Control 6.0 (SP4). It works fine with my pc but when used with Win98 and Win ME, the process seems to operate in a loop where the avi file is supposed to stop after the backup process is finished but the process is "hanged" so nothing gets done and the avi file will keep on playing. The command used is :
set classlib to progress.vcx additive
oProgbar = CreateObject('Playavi')
oProgbar.Show()
With oProgbar.olecontrol1
.open(maindir2+"avis\ftp5.avi"
.Play()
lcbackup=left(directox,xdirec-1)+"\pkzip\PKZIP -ex&f a:\back_up.zip *.dbf *.cdx *.vue *.txt *.fpt"
loShell = CreateObject("wscript.shell"
lnSuccess = loShell.Run(lcBackup,0,.t.)
.stop()
endwith
oProgbar.Release()
Release Claslib progress
Another compatibility problem is while using the Kodak Image Control OCX. I have a form with zoom in and zoom out capabilities and everything is fine with my win2K but with a windows ME, the image fails to load even though the all of Kodak Image OCX's has been installed and registered using Regsvr32. Anybody with similar experience and pointers on how to solve this problems. It is quite frustrating to see your works fails on other pcs. For your info, wscript 5.6 is installed on all user systems.
set classlib to progress.vcx additive
oProgbar = CreateObject('Playavi')
oProgbar.Show()
With oProgbar.olecontrol1
.open(maindir2+"avis\ftp5.avi"
.Play()
lcbackup=left(directox,xdirec-1)+"\pkzip\PKZIP -ex&f a:\back_up.zip *.dbf *.cdx *.vue *.txt *.fpt"
loShell = CreateObject("wscript.shell"
lnSuccess = loShell.Run(lcBackup,0,.t.)
.stop()
endwith
oProgbar.Release()
Release Claslib progress
Another compatibility problem is while using the Kodak Image Control OCX. I have a form with zoom in and zoom out capabilities and everything is fine with my win2K but with a windows ME, the image fails to load even though the all of Kodak Image OCX's has been installed and registered using Regsvr32. Anybody with similar experience and pointers on how to solve this problems. It is quite frustrating to see your works fails on other pcs. For your info, wscript 5.6 is installed on all user systems.