Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
COMATTRIB_READONLY doesn't work?
Message
De
25/03/2004 14:28:27
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
COMATTRIB_READONLY doesn't work?
Divers
Thread ID:
00889736
Message ID:
00889736
Vues:
61
Hi!

Just defined my first COM-server with read-only property like:
#include foxpro.h

DEFINE CLASS myclass AS SESSION olepublic
   * Define property
   MyProperty = "Test"
   * Only set the nFlags attribute for MyProperty
   myproperty_comattrib = COMATTRIB_READONLY
ENDDEFINE
I create a server object with CREATEOBJECT() :
oTest = CREATEOBJECT("myapp.myclass")
I still can modify MyProperty value on client. What's wrong?

Of course I can protect the property using COMRETURNERROR in assign method but why I need to do so? Is it a bug? (I use VFP8SP1 on WinXP SP1)
/A new technology turns into completely outdated stuff before you have a time to read "Getting Started..." section.
/If there are some "system programmers" then others are unsystematic.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform