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

C / C++ / MFC

 
GeneralRe: C2501 Pin
Jon Sagara30-Jan-02 16:06
Jon Sagara30-Jan-02 16:06 
GeneralRe: C2501 Pin
Nish Nishant30-Jan-02 18:33
sitebuilderNish Nishant30-Jan-02 18:33 
GeneralRe: C2501 Pin
Jon Sagara30-Jan-02 18:44
Jon Sagara30-Jan-02 18:44 
Generalexception-declaration Pin
alex.barylski30-Jan-02 15:44
alex.barylski30-Jan-02 15:44 
GeneralCustom Control and ON_NOTIFY Pin
XP30-Jan-02 15:41
XP30-Jan-02 15:41 
GeneralRe: Custom Control and ON_NOTIFY Pin
XP30-Jan-02 16:11
XP30-Jan-02 16:11 
GeneralMemory Mapped File Pin
30-Jan-02 14:31
suss30-Jan-02 14:31 
Generalgenerating error messages Pin
Cnoob30-Jan-02 14:11
Cnoob30-Jan-02 14:11 
in a MFC dialog based app, i got my previous app to work finally but i also need the edit box to be checked for entered text, if nothing is entered it has to generate a message box stating so when the show button is clicked.
like i said i got it all working, i can enter some text and click the button and have a box pop up displaying what i typed. but i'm not sure how to make the button check the edit box for text and display my error message.

also it's not important but where would i put the updatdata to clear the edit box once ok is clicked on the message box.
here's the part of code i'm referring to:
void CProgEx3Dlg::OnShow()
{
GetDlgItemText(IDC_TEXT,m_sText);
MessageBox(m_sText,"Sample Dialog Box",NULL);
}
thnx again in advance

QuestionHow I know CD-ROM's door is Opened or Closed? Pin
Love In Snowing30-Jan-02 13:57
Love In Snowing30-Jan-02 13:57 
AnswerRe: How I know CD-ROM's door is Opened or Closed? Pin
Jens Kreiensiek30-Jan-02 21:32
Jens Kreiensiek30-Jan-02 21:32 
GeneralRe: How I know CD-ROM's door is Opened or Closed? Pin
Love In Snowing30-Jan-02 21:42
Love In Snowing30-Jan-02 21:42 
GeneralRe: How I know CD-ROM's door is Opened or Closed? Pin
Jens Kreiensiek30-Jan-02 21:53
Jens Kreiensiek30-Jan-02 21:53 
AnswerRe: How I know CD-ROM's door is Opened or Closed? Pin
HintiFlo30-Jan-02 21:39
HintiFlo30-Jan-02 21:39 
GeneralUNICODE reg/ini Pin
Matt Newman30-Jan-02 13:25
Matt Newman30-Jan-02 13:25 
GeneralPlugin Architecture Pin
tdhdeep30-Jan-02 11:39
tdhdeep30-Jan-02 11:39 
GeneralRe: Plugin Architecture Pin
Roger Allen31-Jan-02 1:46
Roger Allen31-Jan-02 1:46 
QuestionFirst Chance Exceptions??? Pin
CSharpDavid30-Jan-02 11:36
CSharpDavid30-Jan-02 11:36 
AnswerRe: First Chance Exceptions??? Pin
Joaquín M López Muñoz30-Jan-02 11:57
Joaquín M López Muñoz30-Jan-02 11:57 
GeneralRe: First Chance Exceptions??? Pin
CSharpDavid30-Jan-02 12:01
CSharpDavid30-Jan-02 12:01 
GeneralHelp Please : CPU usage stays at 100% Pin
Ganesh Ramaswamy30-Jan-02 10:06
Ganesh Ramaswamy30-Jan-02 10:06 
GeneralRe: Help Please : CPU usage stays at 100% Pin
Tim Smith30-Jan-02 10:32
Tim Smith30-Jan-02 10:32 
GeneralRe: Help Please : CPU usage stays at 100% Pin
Ganesh Ramaswamy30-Jan-02 10:45
Ganesh Ramaswamy30-Jan-02 10:45 
GeneralRe: Help Please : CPU usage stays at 100% Pin
Nish Nishant30-Jan-02 18:36
sitebuilderNish Nishant30-Jan-02 18:36 
GeneralRe: Help Please : CPU usage stays at 100% Pin
Joaquín M López Muñoz30-Jan-02 11:18
Joaquín M López Muñoz30-Jan-02 11:18 
GeneralRe: Help Please : CPU usage stays at 100% Pin
Ganesh Ramaswamy30-Jan-02 22:57
Ganesh Ramaswamy30-Jan-02 22:57 

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.