General information
Category:
ActiveX controls in VFP
>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.
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only