Information générale
Catégorie:
Contrôles ActiveX en 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.
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement