Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
MS animation control
Message
De
03/03/1999 11:09:54
Bob Lucas
The WordWare Agency
Alberta, Canada
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00193453
Message ID:
00193615
Vues:
14
>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
Fil
Voir

Click here to load this message in the networking platform