Hi all,
I am developing a win 32 application on Visual studio2008.In realease mode with compiler optimization disabled ,my application working fine.But,in maximize speed(Compiler optimization field in C++)its not working properly,Iam explaining with a code
volatile int iExisist=-1;
iExisist=SearchEntry(_T("abc"));//Searching an entry  
	MessageBox(hWnd, _T("Entry Found"), _T("Success"), MB_OK );
	MessageBox(hWnd, _T("Entry not Found"), _T("ERROR"), MB_OK |MB_ICONERROR);
While running the application with Compiler optimization disabled Working Fine.In enabled condition(Compiler optimization(Maximize Speed)))always going to else part eventhough i am giving a correct entry.What may be the reason for this problem.Please help me