Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Gdiplusx + windows 7 = Not BFF
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
01462337
Message ID:
01463141
Vues:
172
This message has been marked as the solution to the initial question of the thread.
>>When you say "the exe does not work" what exactly do you mean?
>>
>>What does not work? Do you actually get an error?
>
>I get an empty image object with the X across it.

Brandon

I can confirm that GDI+X does work in Windows7.

What you have is a situation where you have VFP9Sp2 installed but your runtimes are VFP9sp1.

I have seen this in a number of cases where the developer had the same complaint - the VFP IDE is SP2 but the runtimes are SP1.

Most probably you have the property on your imgCanvas (check it)
RenderMode = 4
This mode renders the image as a PNG to obtain transparency and assigns it to the PictureVal property of the image object which the imgCanvas is based on.

Support for PNG and PictureVal only came to VFP in SP2 and not SP1

So when the class does that assignment, nothing happens.

This is easy to test.

In your VFP command window just type
?VERSION(4)
you should get

09.00.0000.7423


That is SP2 with the latest hotfix installed.
Now make a new project and add a prg to it. The prg has only one line
MESSAGEBOX(VERSION(4))
compile this as an EXE and run it from explorer, NOT from within the IDE. If you do not get the same version number as above, then you know you have found it and your runtime is not the same version as your IDE.

Version(4) on Sp1 gives me 09.00.0000.3504
Version(4) on sp2 with the latest hotfix gives me 09.00.0000.7423

Let's know what you find.

By the way, the GDI+X class you are using, is it one of your own or if not which one is it?

Bernard
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform