Click here to Skip to main content
15,913,610 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Date Time Picker Problem(IDC_DATETIMEPICKER) Pin
lonely_life28-Apr-04 17:16
lonely_life28-Apr-04 17:16 
GeneralRe: Date Time Picker Problem(IDC_DATETIMEPICKER) Pin
David Crow29-Apr-04 2:46
David Crow29-Apr-04 2:46 
Questionhow to create a service in non LocalSystem account Pin
tank102527-Apr-04 16:46
tank102527-Apr-04 16:46 
AnswerRe: how to create a service in non LocalSystem account Pin
Antony M Kancidrowski28-Apr-04 5:28
Antony M Kancidrowski28-Apr-04 5:28 
AnswerRe: how to create a service in non LocalSystem account Pin
22491729-Apr-04 4:25
22491729-Apr-04 4:25 
AnswerRe: how to create a service in non LocalSystem account Pin
Halid Niyaz20-Jul-04 19:00
Halid Niyaz20-Jul-04 19:00 
GeneralA question about programming style Pin
nguyenvhn27-Apr-04 16:32
nguyenvhn27-Apr-04 16:32 
GeneralRe: A question about programming style Pin
gUrM33T27-Apr-04 16:52
gUrM33T27-Apr-04 16:52 
Extracted from MSDN:

__declspec( property( get=get_func_name ) ) declarator<br />
__declspec( property( put=put_func_name ) ) declarator<br />
__declspec( property( get=get_func_name, put=put_func_name ) ) declarator


This attribute can be applied to non-static “virtual data members” in a class or structure definition. The compiler treats these “virtual data members” as data members by changing their references into function calls.

When the compiler sees a data member declared with this attribute on the right of a member-selection operator (“.” or “->“), it converts the operation to a get or put function, depending on whether such an expression is an l-value or an r-value. In more complicated contexts, such as “+=“, a rewrite is performed by doing both get and put.

This attribute can also be used in the declaration of an empty array in a class or structure definition. For example:

__declspec(property(get=GetX, put=PutX)) int x[];
The above statement indicates that x[] can be used with one or more array indices. In this case, i=p->x[a][b]
will be turned into i=p->GetX(a, b), and p->x[a][b] = i will be turned into p->PutX(a, b, i);

Gurmeet S. Kochar
If you believe in God, it's because of the Devil

My CodeProject Articles: HTML Reader C++ Class Library, Numeric Edit Control

GeneralRe: A question about programming style Pin
nguyenvhn28-Apr-04 15:55
nguyenvhn28-Apr-04 15:55 
GeneralRe: A question about programming style Pin
toxcct27-Apr-04 22:29
toxcct27-Apr-04 22:29 
QuestionCannot find dir.h???? Pin
zscuffha27-Apr-04 15:43
zscuffha27-Apr-04 15:43 
AnswerRe: Cannot find dir.h???? Pin
Jitendra gangwar27-Apr-04 19:45
Jitendra gangwar27-Apr-04 19:45 
GeneralChange backcolor datetime picker control Pin
myanonym27-Apr-04 15:37
myanonym27-Apr-04 15:37 
GeneralSet tool tip text on tree control item Pin
Anonymous27-Apr-04 14:12
Anonymous27-Apr-04 14:12 
GeneralRe: Set tool tip text on tree control item Pin
thowra27-Apr-04 22:01
thowra27-Apr-04 22:01 
GeneralSimple divison has GONE MAD! Pin
Selevercin27-Apr-04 12:09
Selevercin27-Apr-04 12:09 
GeneralRe: Simple divison has GONE MAD! Pin
Phil Martin27-Apr-04 13:42
professionalPhil Martin27-Apr-04 13:42 
GeneralRe: Simple divison has GONE MAD! Pin
Selevercin27-Apr-04 14:27
Selevercin27-Apr-04 14:27 
GeneralRe: Simple divison has GONE MAD! Pin
Tim Smith27-Apr-04 14:43
Tim Smith27-Apr-04 14:43 
GeneralRe: Simple divison has GONE MAD! Pin
Paul Ranson28-Apr-04 0:54
Paul Ranson28-Apr-04 0:54 
Generaltesting for &lt;esc&gt; key Pin
RalfPeter27-Apr-04 11:55
RalfPeter27-Apr-04 11:55 
GeneralRe: testing for &lt;esc&gt; key Pin
Selevercin27-Apr-04 12:14
Selevercin27-Apr-04 12:14 
GeneralRe: testing for &lt;esc&gt; key Pin
Christian Graus27-Apr-04 12:21
protectorChristian Graus27-Apr-04 12:21 
GeneralRe: testing for &lt;esc&gt; key Pin
Christian Graus27-Apr-04 12:18
protectorChristian Graus27-Apr-04 12:18 
GeneralRe: testing for &lt;esc&gt; key Pin
jmkhael28-Apr-04 0:27
jmkhael28-Apr-04 0:27 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.