Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
MS animation control
Message
 
To
03/03/1999 11:09:54
Bob Lucas
The WordWare Agency
Alberta, Canada
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00193453
Message ID:
00193648
Views:
13
>>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.
>
>I don't think activeX controls can find files that are in the EXE. VFP controls and programs can but not activeX. I have found this to be true with bitmaps used in a statusbar control. I think the Imagelist control also needs the bitmaps or icon files to be available. These should be packaged separately with you EXE.

Thanks Bob,

That's what I found worked, but wasn't sure if there was another way to get it to work. Have a great day!

John.
Previous
Reply
Map
View

Click here to load this message in the networking platform