Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Failure of LOADPICTURE() in EXE
Message
De
15/10/1999 15:36:37
 
 
À
15/10/1999 10:01:30
Information générale
Forum:
Visual FoxPro
Catégorie:
Photos et traitement d'images
Divers
Thread ID:
00276813
Message ID:
00277079
Vues:
25
>I'm using ImageList and ListView controls to show lists with images in my billing application (VFP 6.0 SP 3). That works fine in developing environment. Compiled to EXE, the program serves an error:
OLE error code 0x800a01e1
No images will be seen. It took hours to track it down to the function LOADPICTURE(), which provides a reference of the image to ImageList.ListItems.Add(...). To check it out, I created a tiny project containing one program file:
guObject = LoadPicture("ICON.ICO")
>=MESSAGEBOX(type("guObject"),16,"dev")
Both, APP and EXE are showing the type "object". Pasting these two lines into the beginning of my billing applications main.prg, I will get the same result as above: APP ok, EXE producing OLE error and making the type of guObject "unknown".
>Any ideas whats going on? Where are OLE error messages documented? Is LOADPICTURE() known to show strange behavior? Am I showing strange behavior?
>
>Thanks in advance!

Exclude your .ICO files and distribute them separately with your .EXE. LOADPICTURE doesn't work with the internal files within an .EXE.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform