Click here to Skip to main content
15,921,577 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: MDI MFC App Question Pin
MailtoGops5-Sep-05 22:07
MailtoGops5-Sep-05 22:07 
QuestionAbout Dialog bar size Pin
zhaopi5-Sep-05 17:17
zhaopi5-Sep-05 17:17 
Questionserver and client Pin
Member 21610045-Sep-05 16:00
Member 21610045-Sep-05 16:00 
AnswerRe: server and client Pin
Christian Graus5-Sep-05 16:04
protectorChristian Graus5-Sep-05 16:04 
GeneralRe: server and client Pin
Moak6-Sep-05 1:18
Moak6-Sep-05 1:18 
AnswerRe: server and client Pin
snprani5-Sep-05 22:31
snprani5-Sep-05 22:31 
AnswerRe: server and client Pin
snprani5-Sep-05 22:33
snprani5-Sep-05 22:33 
Questionproperties Pin
zildjohn015-Sep-05 13:37
zildjohn015-Sep-05 13:37 
hello, i was wondering if there is an equivalent of the c# feature "properties" in c++. i.e., the client sees it as a variable, but methods are called to access it. You should understand from this c# sample:

// test.cs<br />
<br />
namespace MyApp {<br />
	public class TestClass {<br />
		private int _item;<br />
<br />
		TestClass(int tmp) {<br />
			_item = tmp;<br />
		}<br />
<br />
		public int data {<br />
			get {return _item;}<br />
			set {_item = value;} // 'value' is implicitly the value<br />
			                     // being assigned to the property<br />
		}<br />
<br />
		static void Main() {<br />
			TestClass x = new TestClass(17);<br />
			int res = TestClass.data; // res is now 17<br />
<br />
			TestClass.data = 42;<br />
			res = TestClass.data; // res is now 42<br />
		}<br />
	}<br />
}


any equivalient in c++ ?
AnswerRe: properties Pin
Christian Graus5-Sep-05 13:44
protectorChristian Graus5-Sep-05 13:44 
Questionicon Pin
Anonymous5-Sep-05 11:14
Anonymous5-Sep-05 11:14 
AnswerRe: icon Pin
oustar5-Sep-05 15:19
oustar5-Sep-05 15:19 
General[Message Deleted] Pin
Ali Tavakol5-Sep-05 19:57
Ali Tavakol5-Sep-05 19:57 
AnswerRe: icon Pin
toxcct5-Sep-05 21:17
toxcct5-Sep-05 21:17 
QuestionDirectX OverLay ? Pin
seq-5-Sep-05 11:08
seq-5-Sep-05 11:08 
QuestionAddstore() [Outlook Automation] problem Pin
_kane_5-Sep-05 10:25
_kane_5-Sep-05 10:25 
QuestionDEBUG_NEW Pin
Klempie5-Sep-05 8:27
Klempie5-Sep-05 8:27 
AnswerRe: DEBUG_NEW Pin
Bob Stanneveld5-Sep-05 9:41
Bob Stanneveld5-Sep-05 9:41 
Questionhow to get the size of an array Pin
Waleed Eissa5-Sep-05 8:00
Waleed Eissa5-Sep-05 8:00 
AnswerRe: how to get the size of an array Pin
Chris Losinger5-Sep-05 8:07
professionalChris Losinger5-Sep-05 8:07 
GeneralRe: how to get the size of an array Pin
Bob Stanneveld5-Sep-05 9:44
Bob Stanneveld5-Sep-05 9:44 
GeneralRe: how to get the size of an array Pin
Jose Lamas Rios5-Sep-05 16:33
Jose Lamas Rios5-Sep-05 16:33 
GeneralRe: how to get the size of an array Pin
Jose Lamas Rios5-Sep-05 16:07
Jose Lamas Rios5-Sep-05 16:07 
AnswerRe: how to get the size of an array Pin
toxcct5-Sep-05 21:20
toxcct5-Sep-05 21:20 
AnswerRe: how to get the size of an array Pin
Waleed Eissa6-Sep-05 4:56
Waleed Eissa6-Sep-05 4:56 
QuestionDraw Icon In Combo Box Pin
Skute5-Sep-05 5:58
Skute5-Sep-05 5:58 

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.