Click here to Skip to main content
15,904,416 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to use graphics in win32 console application Pin
ThatsAlok22-May-06 4:02
ThatsAlok22-May-06 4:02 
GeneralRe: How to use graphics in win32 console application Pin
kflrei25-May-06 23:58
kflrei25-May-06 23:58 
QuestionEdit Box Pin
VinayCool21-May-06 22:19
VinayCool21-May-06 22:19 
AnswerRe: Edit Box Pin
Hamid_RT21-May-06 22:23
Hamid_RT21-May-06 22:23 
AnswerRe: Edit Box Pin
GDavy21-May-06 22:25
GDavy21-May-06 22:25 
AnswerRe: Edit Box Pin
Hamid_RT21-May-06 22:29
Hamid_RT21-May-06 22:29 
AnswerRe: Edit Box Pin
eli1502197921-May-06 22:32
eli1502197921-May-06 22:32 
AnswerRe: Edit Box Pin
Laxman Auti21-May-06 22:49
Laxman Auti21-May-06 22:49 
Vinay wrote:
I have 2 edit box in my dialog m_INDEX_FILE & m_WORD & a Search button.
on the OnSearch()i want to check if the user has entered data or not if the user has not entered data then i want to disply a message box for that i have used below code. but the problem is below code has no effect ...can u please tell what changes has to be made....


Try the following Code.
void CSearchDlg::OnSearch()
{
	UpdateData(TRUE);
	if (m_INDEX_FILE.IsEmpty())
	{
		MessageBox("Select the Index File before searching !","Asis Search Engine",MB_OK | MB_ICONINFORMATION);
		return;
	}
	if (m_WORD.IsEmpty())
	{
		MessageBox("Enter the word to be searched","Asis Search Engine",MB_OK | MB_ICONINFORMATION);
		return;
	}
        //Do your stuff here
	UpdateData(FALSE);
}



Knock out 't' from can't,
You can if you think you can
Cool | :cool:
AnswerRe: Edit Box Pin
VinayCool21-May-06 23:05
VinayCool21-May-06 23:05 
AnswerRe: Edit Box Pin
ThatsAlok22-May-06 4:01
ThatsAlok22-May-06 4:01 
QuestionCan any body give solution to my problem.. Pin
D.Srihari21-May-06 21:48
D.Srihari21-May-06 21:48 
GeneralRe: Can any body give solution to my problem.. Pin
Laxman Auti21-May-06 22:39
Laxman Auti21-May-06 22:39 
AnswerRe: Can any body give solution to my problem.. Pin
Ramu.e21-May-06 22:41
Ramu.e21-May-06 22:41 
QuestionIterating a folder Pin
atimpoo21-May-06 21:39
atimpoo21-May-06 21:39 
AnswerRe: Iterating a folder [modified] Pin
Nibu babu thomas21-May-06 21:40
Nibu babu thomas21-May-06 21:40 
AnswerRe: Iterating a folder Pin
ThatsAlok22-May-06 0:40
ThatsAlok22-May-06 0:40 
QuestionFonts Pin
Sarath C21-May-06 21:18
Sarath C21-May-06 21:18 
AnswerRe: Fonts Pin
Laxman Auti21-May-06 22:32
Laxman Auti21-May-06 22:32 
GeneralRe: Fonts Pin
Hamid_RT21-May-06 22:37
Hamid_RT21-May-06 22:37 
GeneralRe: Fonts Pin
ThatsAlok22-May-06 0:38
ThatsAlok22-May-06 0:38 
QuestionMultilingual Support Problem Pin
NiceNaidu21-May-06 20:56
NiceNaidu21-May-06 20:56 
AnswerRe: Multilingual Support Problem Pin
grigsoft21-May-06 21:23
grigsoft21-May-06 21:23 
GeneralRe: Multilingual Support Problem Pin
NiceNaidu21-May-06 21:30
NiceNaidu21-May-06 21:30 
GeneralRe: Multilingual Support Problem Pin
grigsoft21-May-06 21:32
grigsoft21-May-06 21:32 
QuestionCxImage Pin
surfman1921-May-06 20:52
surfman1921-May-06 20:52 

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.