Category : visual-c++

I don’t understand this C26485 warning I receive. My code is an exception handler: catch (CDBException* e) { TCHAR szError[_MAX_PATH]; e->GetErrorMessage(szError, _MAX_PATH); AfxMessageBox(szError); } It is saying: Expression szError: No array to pointer decay (bounds.3). Both GetErrorMessage and AfxMessageBox are flagging this. It doesn’t make sense to me. Thanks for your help. Source: Windows Questions ..

Read more