Re: Can objects have properties?

From: Doug Harrison [MVP] (dsh_at_mvps.org)
Date: 09/27/04


Date: Mon, 27 Sep 2004 10:22:54 -0500

Arnie Mauer wrote:

>I'm using VC++ v8 beta. Haven't used VC++ for many years, v4.
>
>Can I create properties in a plain old class (non-visual)? I've been
>using Borland C++ Builder for many years. There, one can create
>public properties with setter/getter functions that can set/get a
>private variable as well as execute additional code which may change
>the state of the object.

I'm not sure what you mean by "visual" and "non-visual" classes, but
properties are a VC++ extension you can use in any class.

-- 
Doug Harrison
Microsoft MVP - Visual C++


Relevant Pages

  • Re: whats the meaning of plain text files executable attribute
    ... My question is what's the meaningof a plain 's executable attribute ... 'execute' without the 'x' bit set. ... what's the difference between interrupt and trap. ...
    (comp.os.linux.misc)
  • Re: DSPP/Alliance-1 PAKs
    ... which will allow me to execute them as a command file. ... line between every command making it impossible to execute as a procedure ... Why can't these be made available as a PLAIN TEXT ...
    (comp.os.vms)
  • Re: SQL Security on Web Server how?????
    ... I believe if there no third parameter for sp_setapprole then the ... assumption is the password is plain text. ... Have you tried calling the Execute() function of the ADODB.Connection ...
    (microsoft.public.sqlserver.security)
  • Re: [Full-Disclosure] new worm - "warm-pussy.jpg".
    ... > Just because the server sends it as plain text doesn't mean the browser ... > won't execute it. ... At least this time they're improving. ... comments field of an actual jpg. ...
    (Full-Disclosure)