Information générale
Catégorie:
Fonctions Windows API
>>1. obj.Prop(x) where x can be 1 .... 999 (or so) And each property itself can be integer, char or logical etc. e.g.: obj.Prop(5)=34
>>
>>2. obj.Prop(x) where x is an array containig the elements, that your object will use
>>
>>3. obj.Prop(x) where x is an array containig the elements, that your object will use and may change, and thus, calling program want to use?
>>
>>
>>1. and 2. case is no problem in VFP 5. But 3. case is available only in VFP 6 by comarray.
>
>How do you declare the property in VC++ for the cases 1 and 2?
>
>Vlad
All 3 cases can be declared by Class Wizzard. And there are different solutions:
1. normal parametrized property and make a parameter as integer type.
2. normal parametrized property and make a parameter as VT_ARRAY type.
3. normal parametrized property and make a parameter as VT_ARRAY by ref type.
Instead of these, you can make a method that takes 1 parameter (type of this see above).
BB
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement