displaying an variable value into AfxMessageBox
-
Hellp i want to display data from an interger variable into an AfxMessageBox i have no compilation errors but when i run the App i have a diaglog Box with 3 buttons ' Ignore ' ' Continue' ... What's the problem ! UpdateData(true); AfxMessageBox(m_terma); CDialog::OnOK(); Thank you very much for your help!
-
Hellp i want to display data from an interger variable into an AfxMessageBox i have no compilation errors but when i run the App i have a diaglog Box with 3 buttons ' Ignore ' ' Continue' ... What's the problem ! UpdateData(true); AfxMessageBox(m_terma); CDialog::OnOK(); Thank you very much for your help!
-
Hellp i want to display data from an interger variable into an AfxMessageBox i have no compilation errors but when i run the App i have a diaglog Box with 3 buttons ' Ignore ' ' Continue' ... What's the problem ! UpdateData(true); AfxMessageBox(m_terma); CDialog::OnOK(); Thank you very much for your help!
Mahhouraaaaaa wrote:
UpdateData(true); AfxMessageBox(m_terma); CDialog::OnOK();
i think m_terma is of type integer. so this CString csMsg; csMsg.Format("%d", m_terma); AfxMessageBox(csMsg); try it out Loka Samastha Sukhino Bhavanthu..!!! ( May all beings be happy and free )
-
Hellp i want to display data from an interger variable into an AfxMessageBox i have no compilation errors but when i run the App i have a diaglog Box with 3 buttons ' Ignore ' ' Continue' ... What's the problem ! UpdateData(true); AfxMessageBox(m_terma); CDialog::OnOK(); Thank you very much for your help!
CString str; int m_terma=20; str.Format ("Value = %i", m_terma); AfxMessageBox (str); ------------------------------------ TCHAR buffer[50]; itoa(m_terma,buffer,10); AfxMessageBox (buffer); ------------------------------------ TCHAR buffer2[50]; wsprintf(buffer2,"Value = %i",m_terma); AfxMessageBox (buffer2);
_**
**_
whitesky
-
Hellp i want to display data from an interger variable into an AfxMessageBox i have no compilation errors but when i run the App i have a diaglog Box with 3 buttons ' Ignore ' ' Continue' ... What's the problem ! UpdateData(true); AfxMessageBox(m_terma); CDialog::OnOK(); Thank you very much for your help!
Mahhouraaaaaa wrote:
Hellp i want to display data from an interger variable into an AfxMessageBoxi have no compilation errors but when i run the App i have a diaglog Box with 3 buttons ' Ignore ' ' Continue' ...What's the problem !
What about setting the breakpoint after UpdateData, and seeing the value in the Quick Watch Window!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers, Alok Gupta VC Forum Q&A :- I/ IV