Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Share VFP objects
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
01388398
Message ID:
01465693
Vues:
84
As of VFP9 you cannot create objects as a part of a property definition in a class. It's applies to any class not just COM. You can move objects creation into the Init of the class.

>Do you have a hello world com code sample?
>
>I ran into problems only when I moved a FOXISAPI implementation to VFP9 - had to move it back to 7 to deliver - same code - recompiled. There is an example COM I wrote here that creates an object inside a COM. Run it in 6 or 7 - then recompile and run it in 9. Surprise me!
>
>>
>>If you're referring to DEFINE CLASS statement with OLEPUBLIC clause than you're wrong. You can create objects in the methods of such class (or any other class) with CREATEOBJECT() or NEWOBJECT().
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform