Click here to Skip to main content
15,905,875 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Test registered dll Pin
David Crow9-Aug-07 3:02
David Crow9-Aug-07 3:02 
GeneralRe: Test registered dll Pin
tuxyboy9-Aug-07 3:18
tuxyboy9-Aug-07 3:18 
GeneralRe: Test registered dll Pin
DevMentor.org9-Aug-07 7:26
DevMentor.org9-Aug-07 7:26 
QuestionPrint option for NTGraph3D Pin
wajape9-Aug-07 1:57
wajape9-Aug-07 1:57 
QuestionCan I declare a control based on OS version in .h file? Pin
Joe Smith IX9-Aug-07 1:38
Joe Smith IX9-Aug-07 1:38 
AnswerRe: Can I declare a control based on OS version in .h file? Pin
toxcct9-Aug-07 1:53
toxcct9-Aug-07 1:53 
GeneralRe: Can I declare a control based on OS version in .h file? Pin
Joe Smith IX9-Aug-07 2:11
Joe Smith IX9-Aug-07 2:11 
GeneralRe: Can I declare a control based on OS version in .h file? Pin
toxcct9-Aug-07 2:18
toxcct9-Aug-07 2:18 
in the .h :
// class CButton1 : public CButton { ... }
// class CButton2 : public CButton { ... }
 
    class CWatever {
    //...
    CButton* m_button;
    //...
 
  public:
    CWatever();
    ~CWatever();
};

in the .cpp :
CWatever::CWatever() {
    //...
    if (OSType() == "XP") {
        m_button = new CButton1();
    }
    else {
        m_button = new CButton2();
    }
    //...
}
 
~CWatever::CWatever() {
    //...
    delete m_button;
    m_button = NULL;
    //...
}

then you use the m_button as if it was a simple button pointer...
m_button->SetWindowText(_T("Push Me !"));



AnswerRe: Can I declare a control based on OS version in .h file? Pin
khb9-Aug-07 1:54
khb9-Aug-07 1:54 
GeneralRe: Can I declare a control based on OS version in .h file? Pin
Joe Smith IX9-Aug-07 1:59
Joe Smith IX9-Aug-07 1:59 
GeneralRe: Can I declare a control based on OS version in .h file? Pin
khb9-Aug-07 2:04
khb9-Aug-07 2:04 
GeneralRe: Can I declare a control based on OS version in .h file? Pin
sps-itsec469-Aug-07 2:56
sps-itsec469-Aug-07 2:56 
QuestionRe: Can I declare a control based on OS version in .h file? Pin
David Crow9-Aug-07 2:55
David Crow9-Aug-07 2:55 
AnswerRe: Can I declare a control based on OS version in .h file? Pin
toxcct9-Aug-07 3:00
toxcct9-Aug-07 3:00 
GeneralRe: Can I declare a control based on OS version in .h file? Pin
David Crow9-Aug-07 3:03
David Crow9-Aug-07 3:03 
AnswerRe: Can I declare a control based on OS version in .h file? Pin
sps-itsec469-Aug-07 3:00
sps-itsec469-Aug-07 3:00 
GeneralRe: Can I declare a control based on OS version in .h file? Pin
David Crow9-Aug-07 3:03
David Crow9-Aug-07 3:03 
QuestionAddstring function Pin
tyagineha9-Aug-07 0:40
tyagineha9-Aug-07 0:40 
AnswerRe: Addstring function Pin
khb9-Aug-07 0:49
khb9-Aug-07 0:49 
GeneralRe: Addstring function Pin
tyagineha9-Aug-07 0:53
tyagineha9-Aug-07 0:53 
AnswerRe: Addstring function Pin
khb9-Aug-07 0:57
khb9-Aug-07 0:57 
GeneralRe: Addstring function Pin
jhwurmbach9-Aug-07 1:07
jhwurmbach9-Aug-07 1:07 
GeneralRe: Addstring function Pin
tyagineha9-Aug-07 1:12
tyagineha9-Aug-07 1:12 
GeneralRe: Addstring function Pin
jhwurmbach9-Aug-07 1:22
jhwurmbach9-Aug-07 1:22 
AnswerRe: Addstring function Pin
khb9-Aug-07 1:27
khb9-Aug-07 1: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.