Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
MS animation control
Message
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Title:
MS animation control
Miscellaneous
Thread ID:
00193453
Message ID:
00193453
Views:
47
I am incorporating the MS animation control in my distributed
application and am getting OLE errors "file not found". I have included the AVI file in my project and it works on my development machine, but when I build the exe and distribute, the AVI file is not being found. Do I need to put the AVI file on the users machine or on the network where they can get to it. I am trying to avoid this if possible just in case the AVI file inadvertently gets deleted.

Here's the code I'm using (works on devp machine not on users)

cFileName = SYS(1271, ThisForm)
cfileName = SUBSTR(cFileName,1,RAT("screens\",cFileName ) -1)+'video\'
cfilename = cFileName + 'findfile.avi'
THISFORM.ocxavi.autoplay = .T.
THISFORM.ocxavi.open(cfilename)


The below code works fine on the users machine. I put the file on the network instead of using the included file in the project as the above code does.

cfilename = "w:\mktgapp\findfile.avi"
THISFORM.ocxavi.autoplay = .T.
THISFORM.ocxavi.open(cfilename)

Thanks.

John.
Next
Reply
Map
View

Click here to load this message in the networking platform