Hi all,

I've got a very strange thing happening and cannot figure it out.

In the following code the first messagebox displays "SUCCESS" and the second "not equal too". What could be the reason why it would enter the loop? I made some changes to the build properties - could it be that?

Code:
LPCSTR strConnect = "SUCCESS";//pEBUF->Connect();
AfxMessageBox((strConnect));
			
if (strConnect != "SUCCESS")
{
      	AfxMessageBox("not equal too");
}
Thanks
SMSDude