Hello, VC++ ExpertsDoes any of you know how to search for a String in a Specified String? Like this in VB
Also, I would like to know how to Pop out a MessageBox when I click on an Edit(TextBox)VB Code:
If InStr(1,the_file,"SEX WITH YOUR MAMA",vbTextCompare)<>0 Then MsgBox "Geez, you do have some good **** in this file:)" End If
I tried this:
It pops up the MessageBox twice! How to resolve it? It doesn't happen if the EDIT1 was a Button...PHP Code:switch(msg){
case WM_COMMAND:
switch(LOWORD(wParam)){
case EDIT1:
MessageBox(hwnd,"Hi","",0);
break;
}
break;
default:
return DefWindowProc(hwnd,msg,wParam,lParam);
}




Does any of you know how to search for a String in a Specified String? Like this in VB
Reply With Quote