Click here to Skip to main content
15,890,882 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: To change the last-modified time of a file? Pin
David Crow26-Feb-05 3:23
David Crow26-Feb-05 3:23 
AnswerRe: To change the last-modified time of a file? Pin
Ravi Bhavnani26-Feb-05 4:27
professionalRavi Bhavnani26-Feb-05 4:27 
GeneralPerfect coders wanted (freelancers) Pin
PavelMenshikov25-Feb-05 23:44
PavelMenshikov25-Feb-05 23:44 
GeneralRe: Perfect coders wanted (freelancers) Pin
Ravi Bhavnani26-Feb-05 4:33
professionalRavi Bhavnani26-Feb-05 4:33 
GeneralRe: Perfect coders wanted (freelancers) Pin
alex.barylski26-Feb-05 10:24
alex.barylski26-Feb-05 10:24 
GeneralRe: Perfect coders wanted (freelancers) Pin
ThatsAlok27-Feb-05 20:17
ThatsAlok27-Feb-05 20:17 
Questionwhat are back pointers Pin
Girish60125-Feb-05 23:25
Girish60125-Feb-05 23:25 
AnswerRe: what are back pointers Pin
Maximilien26-Feb-05 1:28
Maximilien26-Feb-05 1:28 
back pointers are used to reference the owner of an object.

lets say you have an object that contains related objects ( for example, a car contains wheels ); the car class knows that it holds X number of wheels; but by default, the wheels don't know they are contained by the car; they could be contained by a bus or a truck; by adding a back pointer to the wheel class, you can know that the class that contain the wheel is indeed a car or a bus or a truck.


/// really pseudo code ...
class wheel;
class car : public vehicule
{
  wheel* m_pWheel1;
  wheel* m_pWheel2;
  wheel* m_pWheel3;
  wheel* m_pWheel4;
};

class wheel
{
  wheel ( vehicule* pVehicule ){m_pVehicule=pVehicule}; 
  vehicule* m_pVehicule;
};
...

car::car()
{
  m_pWheel1 = new wheel( this; );
  m_pWheel2 = new wheel( this; );
  m_pWheel3 = new wheel( this; );
  m_pWheel4 = new wheel( this; );
}



Maximilien Lincourt
Your Head A Splode - Strong Bad
GeneralRe: what are back pointers Pin
Girish60126-Feb-05 2:41
Girish60126-Feb-05 2:41 
GeneralReading/Writing from/to a device Pin
User 137680025-Feb-05 23:17
User 137680025-Feb-05 23:17 
QuestionHow to notice and stop new device Pin
atsuki25-Feb-05 22:44
atsuki25-Feb-05 22:44 
GeneralMySql / MFC VC++ Pin
_kane_25-Feb-05 21:58
_kane_25-Feb-05 21:58 
GeneralRe: MySql / MFC VC++ Pin
David Crow26-Feb-05 3:26
David Crow26-Feb-05 3:26 
GeneralRe: MySql / MFC VC++ Pin
realloc26-Feb-05 6:51
realloc26-Feb-05 6:51 
GeneralRe: MySql / MFC VC++ Pin
Anonymous26-Feb-05 12:48
Anonymous26-Feb-05 12:48 
Questioncan i use setwindowrgn() to create irregular shaped figures on the desktop Pin
uday__m25-Feb-05 20:13
uday__m25-Feb-05 20:13 
AnswerRe: can i use setwindowrgn() to create irregular shaped figures on the desktop Pin
Ravi Bhavnani26-Feb-05 4:30
professionalRavi Bhavnani26-Feb-05 4:30 
GeneralAccelerators Pin
doctorpi25-Feb-05 20:10
doctorpi25-Feb-05 20:10 
GeneralRe: Accelerators Pin
Bob Ciora26-Feb-05 3:51
Bob Ciora26-Feb-05 3:51 
Generalhandling list controls Pin
laiju25-Feb-05 19:24
laiju25-Feb-05 19:24 
QuestionWhy doesn't VC7.1 like this code? Pin
Anonymous25-Feb-05 19:01
Anonymous25-Feb-05 19:01 
AnswerRe: Why doesn't VC7.1 like this code? Pin
Anonymous25-Feb-05 19:02
Anonymous25-Feb-05 19:02 
QuestionHow to create a connection using 802.1x authentication Pin
Chuaaico25-Feb-05 18:28
Chuaaico25-Feb-05 18:28 
QuestionHow to get Interface? Pin
teremin25-Feb-05 17:26
teremin25-Feb-05 17:26 
AnswerRe: How to get Interface? Pin
PJ Arends26-Feb-05 9:22
professionalPJ Arends26-Feb-05 9:22 

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.