Click here to Skip to main content
15,393,863 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: C++ question. Please help me out Pin
Richard MacCutchan2-Nov-12 10:23
mveRichard MacCutchan2-Nov-12 10:23 
AnswerRe: C++ question. Please help me out Pin
Amarnath S3-Nov-12 20:49
professionalAmarnath S3-Nov-12 20:49 
Questionhow to return value after user input Pin
Member 21198442-Nov-12 5:11
MemberMember 21198442-Nov-12 5:11 
AnswerRe: how to return value after user input Pin
Richard MacCutchan2-Nov-12 6:25
mveRichard MacCutchan2-Nov-12 6:25 
GeneralRe: how to return value after user input Pin
Member 21198442-Nov-12 8:16
MemberMember 21198442-Nov-12 8:16 
GeneralRe: how to return value after user input Pin
Richard MacCutchan2-Nov-12 10:19
mveRichard MacCutchan2-Nov-12 10:19 
AnswerRe: how to return value after user input Pin
Santhosh G_2-Nov-12 6:34
MemberSanthosh G_2-Nov-12 6:34 
GeneralRe: how to return value after user input Pin
Member 21198442-Nov-12 7:51
MemberMember 21198442-Nov-12 7:51 
yes i have add InFlag = true; it is not working.

C#
CString CMyTextBox::GetString()
{
// how to come here after press enter by user that is main thing
    if (InFlag == true)
        return RetVal;
    return "";
}


it is call form dialog class here is code.
C#
void CRetValTestDlg::OnGetString()
{
    m_TxInput.InFlag = false;
    CString s = m_TxInput.GetString();
    m_TxOutput.SetWindowText (s);
}
void CRetValTestDlg::OnGetNumber()
{
    m_TxInput.InFlag = false;
    CString s;
    double d = m_TxInput.GetNumber();
    s.Format ("%d",d);
    m_TxOutput.SetWindowText (s);
}


i would like to upload project file for review. if possible.
GeneralRe: how to return value after user input Pin
Santhosh G_2-Nov-12 15:32
MemberSanthosh G_2-Nov-12 15:32 
GeneralRe: how to return value after user input Pin
Member 21198442-Nov-12 17:19
MemberMember 21198442-Nov-12 17:19 
GeneralRe: how to return value after user input Pin
Santhosh G_2-Nov-12 17:26
MemberSanthosh G_2-Nov-12 17:26 
GeneralRe: how to return value after user input Pin
Member 21198442-Nov-12 17:33
MemberMember 21198442-Nov-12 17:33 
GeneralRe: how to return value after user input Pin
Santhosh G_2-Nov-12 18:01
MemberSanthosh G_2-Nov-12 18:01 
GeneralRe: how to return value after user input Pin
Member 21198442-Nov-12 18:34
MemberMember 21198442-Nov-12 18:34 
GeneralRe: how to return value after user input Pin
Santhosh G_2-Nov-12 18:43
MemberSanthosh G_2-Nov-12 18:43 
GeneralRe: how to return value after user input Pin
Member 21198442-Nov-12 20:02
MemberMember 21198442-Nov-12 20:02 
GeneralRe: how to return value after user input Pin
Santhosh G_2-Nov-12 20:27
MemberSanthosh G_2-Nov-12 20:27 
GeneralRe: how to return value after user input Pin
Member 21198442-Nov-12 21:05
MemberMember 21198442-Nov-12 21:05 
GeneralRe: how to return value after user input Pin
Santhosh G_2-Nov-12 21:41
MemberSanthosh G_2-Nov-12 21:41 
GeneralRe: how to return value after user input Pin
Member 21198442-Nov-12 23:24
MemberMember 21198442-Nov-12 23:24 
GeneralRe: how to return value after user input Pin
Richard MacCutchan3-Nov-12 1:56
mveRichard MacCutchan3-Nov-12 1:56 
GeneralRe: how to return value after user input Pin
Member 21198443-Nov-12 4:40
MemberMember 21198443-Nov-12 4:40 
GeneralRe: how to return value after user input Pin
Richard MacCutchan3-Nov-12 6:07
mveRichard MacCutchan3-Nov-12 6:07 
GeneralRe: how to return value after user input Pin
Member 21198443-Nov-12 7:12
MemberMember 21198443-Nov-12 7:12 
GeneralRe: how to return value after user input Pin
Richard MacCutchan3-Nov-12 8:03
mveRichard MacCutchan3-Nov-12 8:03 

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.