Click here to Skip to main content
       

C / C++ / MFC

 
Hint: For improved responsiveness ensure Javascript is enabled and choose 'Normal' from the Layout dropdown and hit 'Update'.
You must Sign In to use this message board.
Search this forum  
    Spacing  Noise  Layout  Per page  Show 
AnswerRe: Curious COM question - the case of the second exe server...memberNemanja Trifunovic15 May '09 - 7:37 
GeneralRe: Curious COM question - the case of the second exe server...mvpCPallini15 May '09 - 7:49 
GeneralRe: Curious COM question - the case of the second exe server...memberJim Crafton15 May '09 - 8:02 
GeneralRe: Curious COM question - the case of the second exe server...mvpCPallini15 May '09 - 11:48 
JokeRe: Curious COM question - the case of the second exe server...mvpRajesh R Subramanian16 May '09 - 1:50 
GeneralRe: Curious COM question - the case of the second exe server...mvpCPallini16 May '09 - 2:06 
GeneralRe: Curious COM question - the case of the second exe server...memberJim Crafton15 May '09 - 7:55 
GeneralRe: Curious COM question - the case of the second exe server...mvpRajesh R Subramanian15 May '09 - 23:23 
QuestionhimemberMohammadj15 May '09 - 5:28 
AnswerRe: himvpDavidCrow15 May '09 - 7:04 
GeneralWelcome again!mvpCPallini15 May '09 - 7:28 
GeneralRe: himemberMohammadj15 May '09 - 9:04 
AnswerRe: himvpDavidCrow15 May '09 - 9:15 
The first thing I'd do is get rid of those unnecessary UpdateData() calls. They are a never-ending source of problems simply because most folks do not know how to use them.
 
You should then have something akin to:
 
void CHashiDlg::On_AddSubtract_action() 
{
    CString strNumA;
            strNumB,
            strResult;
 
    m_num1.GetWindowText(strNumA);
    m_num2.GetWindowText(strNumB);
 
    double numA = atof(strNumA),
           numB = atof(strNumB);
 
    // check whether the mouse clicked right half
    if (m_two_actions_botn.OnRight())
        strResult.Format("%f", numA + numB);
    else
        strResult.Format("%f", numA - numB);
        
    m_results.SetWindowText(strResult);
}

 

"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown

"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons


GeneralRe: himemberMohammadj15 May '09 - 9:30 
GeneralRe: himvpDavidCrow15 May '09 - 9:35 
GeneralRe: himemberMohammadj15 May '09 - 9:37 
QuestionRe: himvpDavidCrow15 May '09 - 10:17 
AnswerRe: himemberMohammadj15 May '09 - 10:23 
QuestionRe: himvpDavidCrow15 May '09 - 10:29 
AnswerRe: himvpCPallini15 May '09 - 11:51 
GeneralRe: himemberMohammadj15 May '09 - 22:49 
QuestionReading a txt file fastlymemberRaghav071015 May '09 - 5:09 
AnswerRe: Reading a txt file fastlymvpled mike15 May '09 - 5:15 
AnswerRe: Reading a txt file fastlymember«_Superman_»15 May '09 - 5:17 
AnswerRe: Reading a txt file fastlymemberStuart Dootson15 May '09 - 5:20 
AnswerRe: Reading a txt file fastlymvpDavidCrow15 May '09 - 7:00 
AnswerRe: Reading a txt file fastlymemberJoe Woodbury15 May '09 - 17:53 
QuestionRe-assembling TCP/IP PacketsmemberKoolski15 May '09 - 5:02 
AnswerRe: Re-assembling TCP/IP Packetsmvpled mike15 May '09 - 5:12 
GeneralRe: Re-assembling TCP/IP PacketsmemberRick York15 May '09 - 5:59 
AnswerRe: Re-assembling TCP/IP PacketsmemberRobert Surtees16 May '09 - 2:21 
GeneralRe: Re-assembling TCP/IP PacketsmemberKoolski18 May '09 - 4:25 
QuestionDoes a Class having a message map need to be derived from CWnd ????memberForNow15 May '09 - 3:18 
AnswerRe: Does a Class having a message map need to be derived from CWnd ????member«_Superman_»15 May '09 - 5:11 
GeneralRe: Does a Class having a message map need to be derived from CWnd ????memberForNow15 May '09 - 6:03 
GeneralRe: Does a Class having a message map need to be derived from CWnd ????mvpDavidCrow15 May '09 - 7:07 
GeneralRe: Does a Class having a message map need to be derived from CWnd ????member«_Superman_»15 May '09 - 20:36 
GeneralRe: Does a Class having a message map need to be derived from CWnd ????memberForNow16 May '09 - 15:37 
QuestionRe: Does a Class having a message map need to be derived from CWnd ????mvpDavidCrow15 May '09 - 7:12 
AnswerRe: Does a Class having a message map need to be derived from CWnd ????memberForNow15 May '09 - 8:58 
QuestionHi.How to Include English dicitionary in visual c++memberSakthiprabhu.gs15 May '09 - 2:44 
AnswerRe: Hi.How to Include English dicitionary in visual c++memberbolivar12315 May '09 - 3:13 
GeneralRe: Hi.How to Include English dicitionary in visual c++mvpCPallini15 May '09 - 3:22 
GeneralRe: Hi.How to Include English dicitionary in visual c++memberMaximilien15 May '09 - 3:58 
GeneralRe: Hi.How to Include English dicitionary in visual c++ -- ITS URGENTmemberbolivar12315 May '09 - 5:39 
AnswerRe: Hi.How to Include English dicitionary in visual c++memberStuart Dootson15 May '09 - 5:15 
AnswerRe: Hi.How to Include English dicitionary in visual c++memberMichael Schubert15 May '09 - 6:02 
QuestionRe: Hi.How to Include English dicitionary in visual c++mvpDavidCrow15 May '09 - 7:15 
Answer: Hi.How to Include English dicitionary in visual c++memberSakthiprabhu.gs15 May '09 - 21:06 
QuestionHow to view class viewmemberkalyanikalakonda15 May '09 - 2:31 

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


Advertise | Privacy | Mobile
Web01 | 2.6.130516.1 | Last Updated 22 May 2013
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid