Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to reference a COM exe from itself?
Message
De
17/08/2005 11:04:21
 
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01041632
Message ID:
01041651
Vues:
19
Hi, Hugo

It looks like I wasn't clear enough. I'm sorry and let me try again:

When I instantiate the exe from command window, with x = CreateObject("TestProj.TestClass"), it works ok, and it exposes its public properties and methods. It doesn't matter at this time if the properties are accessed directly or not. The problem lies elsewhere. The exe shows a form. User can interact with that form, and I need a way to read the values the user wrote in the interface.

I was thinking to set the controlsource of the controls to the public properties of the OLE class, like .ControlSource = "TestClass.MyPublicPEM", but this is not possible, because there is no TestClass instatiated! How to reference the ole class from the instantiated exe?


>Hi Grigore,
>
>
>I am not sure if I understand your question, just wanted to say that I do not use public properties, I always use protected properties and add a pair of get and set functions which I use to access or change it's values, although it is much more code, I find it better for me, for example:
Grigore Dolghin
Class Software.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform