Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
MTS and Methods
Message
De
14/07/2000 17:21:59
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Titre:
Divers
Thread ID:
00392268
Message ID:
00392710
Vues:
10
>Sounds like you need to use protect any properties or methods you do not want to visible.
>
>DEFINE CLASS MyCOMObject AS LINE OLEPUBLIC
>PROTECTED Height, Width, ....
>ENDDEFINE
>

Actually, better HIDDEN than PROTECTED for the public properties, methods and events that should not be presented (HIDDEN items will not be presented to subclasses of a class with HIDDEN items), and add

NODEFAULT
*

to the public events and methods which should not fire when triggered, especially using a UI thing like a Line for the base class.

>>Dear all,
>>
>>I have a multi-use com dll and installed in Win2k MTS(Com+). The problem is that I am seeing a lot of other methods appearing like Controls, Datasession, name and whole host of them. I build my class using code (not class library) and insert it in the project file (this is the only file). The wierd thing is that two project dlls shows different extra methods.
>>
>>FYI, the class I build is very simple. One class with one method only.
>>Where did I go wrong? Thanks.
>>
>>
>>Regards,
>>Kueh
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform