0 out of 1 rated this helpful - Rate this topic

_AFX_SECURE_NO_WARNINGS 

Suppresses compiler warnings for the use of deprecated MFC functions.


_AFX_SECURE_NO_WARNINGS

This code sample would cause a compiler warning if _AFX_SECURE_NO_WARNINGS were not defined.

// afx_secure_no_warnings.cpp
// compile with: /EHsc 
#define _AFX_SECURE_NO_WARNINGS
#include "afxcmn.h"

int main() {
   CRichEditCtrl * m_richedit = new CRichEditCtrl;
   m_richedit->GetSelText("aa");
}
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ