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

C / C++ / MFC

 
AnswerRe: Dos subclassing Pin
Maximilien4-Feb-10 8:38
Maximilien4-Feb-10 8:38 
AnswerRe: Dos subclassing Pin
Richard MacCutchan4-Feb-10 8:48
mveRichard MacCutchan4-Feb-10 8:48 
AnswerRe: Dos subclassing Pin
Code-o-mat4-Feb-10 8:50
Code-o-mat4-Feb-10 8:50 
AnswerRe: Dos subclassing Pin
Avi Berger4-Feb-10 9:13
Avi Berger4-Feb-10 9:13 
GeneralRe: Dos subclassing Pin
loyal ginger4-Feb-10 11:16
loyal ginger4-Feb-10 11:16 
GeneralRe: Dos subclassing Pin
Avi Berger4-Feb-10 12:42
Avi Berger4-Feb-10 12:42 
QuestionDeclaring Variables Pin
gregarion4-Feb-10 7:48
gregarion4-Feb-10 7:48 
AnswerRe: Declaring Variables Pin
Maximilien4-Feb-10 8:19
Maximilien4-Feb-10 8:19 
not certain I understand completely your problem, wchich sounds a lot like a very basic problem.

something like this? :
class A
{ 
private:
  int m_a;
public:
  int f(){return m_a;};
};

class B
{ 
private:
  int m_b;
  void f()
  { 
    A a; 
    m_b = a.f();
  };
};


or something like this?:
class A
{ 
private:
  int m_a;
public:
  int GetA(){return m_a;};
};

class B
{ 
private:
  int m_b;
public:
  void SetB( int b){ m_b = b;};
};

void main()
{
  A a;
  B b;
  b.SetB( a.GetA() );
}


depending on the relation between A and B, this could be done in a multitude of different ways.

This signature was proudly tested on animals.

GeneralRe: Declaring Variables Pin
gregarion4-Feb-10 8:34
gregarion4-Feb-10 8:34 
GeneralRe: Declaring Variables Pin
Richard MacCutchan4-Feb-10 8:47
mveRichard MacCutchan4-Feb-10 8:47 
GeneralRe: Declaring Variables Pin
gregarion4-Feb-10 8:53
gregarion4-Feb-10 8:53 
GeneralRe: Declaring Variables Pin
Richard MacCutchan4-Feb-10 11:38
mveRichard MacCutchan4-Feb-10 11:38 
GeneralRe: Declaring Variables Pin
Rozis4-Feb-10 12:42
Rozis4-Feb-10 12:42 
GeneralRe: Declaring Variables Pin
Richard MacCutchan4-Feb-10 22:04
mveRichard MacCutchan4-Feb-10 22:04 
GeneralRe: Declaring Variables Pin
Maximilien4-Feb-10 8:55
Maximilien4-Feb-10 8:55 
GeneralRe: Declaring Variables Pin
gregarion4-Feb-10 8:59
gregarion4-Feb-10 8:59 
QuestionMessage Removed Pin
4-Feb-10 7:20
glitteringsound4-Feb-10 7:20 
AnswerRe: Code needed for Parsing PE for Exports Pin
Tim Craig4-Feb-10 8:32
Tim Craig4-Feb-10 8:32 
AnswerRe: Code needed for Parsing PE for Exports Pin
Richard MacCutchan4-Feb-10 8:45
mveRichard MacCutchan4-Feb-10 8:45 
QuestionC++ return value from function Pin
uusheikh4-Feb-10 7:11
uusheikh4-Feb-10 7:11 
AnswerRe: C++ return value from function Pin
Nemanja Trifunovic4-Feb-10 7:27
Nemanja Trifunovic4-Feb-10 7:27 
GeneralRe: C++ return value from function Pin
uusheikh4-Feb-10 7:35
uusheikh4-Feb-10 7:35 
GeneralRe: C++ return value from function Pin
Maximilien4-Feb-10 7:38
Maximilien4-Feb-10 7:38 
GeneralRe: C++ return value from function Pin
Nemanja Trifunovic4-Feb-10 7:43
Nemanja Trifunovic4-Feb-10 7:43 
GeneralRe: C++ return value from function Pin
uusheikh4-Feb-10 8:18
uusheikh4-Feb-10 8:18 

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.