Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem with ImageList
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00065533
Message ID:
00065600
Vues:
31
>It's a Foxpro Bug (Suprise)
>The image cannot be contained in the executable ie the project - remove it frm the project and access with load image via relative pathing - the image you refer to may not be in the project - Wala - No more invalid file descriptor crap.
>
>I had this same problem and worked it through with Tech Support
>
>
>Jon
>
>>I have a form with an ImageList that I want to add images to programatically. In the form's activate method I have this code:
>>
>>THISFORM.oleMyImageList.ListImages.Add(, "MyIconKey", LOADPICTURE("MyIcon.ico"))
>>
>>I get an 'Illegal file descriptor' error. What am I doing wrong? I was referring to Andy MacNeill's article in FPA's Jan '97 issue for help. Any ideas?
>>
>>TIA

Jon,

I would assume that you could embed the icon in the file, say, for example, as an icon for a form, but if you wished to use it via LOADPICTURE() somewhere else, you'd also have to supply an independent copy. I wonder, however, if the same thing might happen if the LOADPICTURE() was called without the path being included. The problem being that you don't always know in advance what the working directory for the application is going to be. Any thoughts on this?

George
George

Ubi caritas et amor, deus ibi est
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform