-
November 21st, 2013, 12:47 AM
#1
Compiler optimization problem in VS 2008
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
Code:
volatile int iExisist=-1;
iExisist=SearchEntry(_T("abc"));//Searching an entry
if(iExiist!=-1)
{
MessageBox(hWnd, _T("Entry Found"), _T("Success"), MB_OK );
}
else
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|