Re: Can objects have properties?

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Igor Tandetnik (itandetnik_at_mvps.org)
Date: 09/27/04


Date: Mon, 27 Sep 2004 15:16:50 -0400


"Arnie Mauer" <xxx@nowhere.net> wrote in message
news:eom06%23LpEHA.3876@TK2MSFTNGP15.phx.gbl
> IMHO, properties are a useful and powerful concept. One nice thing
> about them is that you can set various property values of an object at
> design time. Drop an object on your form and set its properties.
> This is in lieu of using methods at runtime.

If that's the kind of properties you are after, then no, VC does not
support them for native C++ classes. __declspec(property) just gives you
a bit of syntactic sugar, nothing more than that. If you want properties
that you can manipulate at design time, you need to write either ActiveX
controls or .NET managed components.

-- 
With best wishes,
    Igor Tandetnik
"On two occasions, I have been asked [by members of Parliament], 'Pray,
Mr. Babbage, if you put into the machine wrong figures, will the right
answers come out?' I am not able to rightly apprehend the kind of
confusion of ideas that could provoke such a question." -- Charles
Babbage


Relevant Pages

  • Re: Can objects have properties?
    ... > Arnie Mauer wrote: ... properties are a useful and powerful concept. ... > independent concept from the language extension that lets you treat ... I don't need design time properties. ...
    (microsoft.public.vc.language)
  • Re: Can objects have properties?
    ... Arnie Mauer wrote: ... properties are a useful and powerful concept. ... > design time. ... then you need something more than just the language extension. ...
    (microsoft.public.vc.language)