|
@@ -34,13 +34,13 @@
|
|
|
#ifndef __BORLANDC__
|
|
|
#ifndef _AFXDLL
|
|
|
#ifndef _UNICODE
|
|
|
- #ifdef _DEBUG
|
|
|
+ #ifdef MFC_DEBUG
|
|
|
#pragma comment(lib, "nafxcwd.lib")
|
|
|
#else
|
|
|
#pragma comment(lib, "nafxcw.lib")
|
|
|
#endif
|
|
|
#else
|
|
|
- #ifdef _DEBUG
|
|
|
+ #ifdef MFC_DEBUG
|
|
|
#pragma comment(lib, "uafxcwd.lib")
|
|
|
#else
|
|
|
#pragma comment(lib, "uafxcw.lib")
|
|
@@ -48,7 +48,7 @@
|
|
|
#endif
|
|
|
#else
|
|
|
#ifndef _UNICODE
|
|
|
- #ifdef _DEBUG
|
|
|
+ #ifdef MFC_DEBUG
|
|
|
#pragma comment(lib, "mfc42d.lib")
|
|
|
#pragma comment(lib, "mfcs42d.lib")
|
|
|
#else
|
|
@@ -56,7 +56,7 @@
|
|
|
#pragma comment(lib, "mfcs42.lib")
|
|
|
#endif
|
|
|
#else
|
|
|
- #ifdef _DEBUG
|
|
|
+ #ifdef MFC_DEBUG
|
|
|
#pragma comment(lib, "mfc42ud.lib")
|
|
|
#pragma comment(lib, "mfcs42ud.lib")
|
|
|
#else
|
|
@@ -67,20 +67,20 @@
|
|
|
#endif
|
|
|
|
|
|
#ifdef _DLL
|
|
|
- #if !defined(_AFX_NO_DEBUG_CRT) && defined(_DEBUG)
|
|
|
+ #if !defined(_AFX_NO_DEBUG_CRT) && defined(MFC_DEBUG)
|
|
|
#pragma comment(lib, "msvcrtd.lib")
|
|
|
#else
|
|
|
#pragma comment(lib, "msvcrt.lib")
|
|
|
#endif
|
|
|
#else
|
|
|
#ifdef _MT
|
|
|
- #if !defined(_AFX_NO_DEBUG_CRT) && defined(_DEBUG)
|
|
|
+ #if !defined(_AFX_NO_DEBUG_CRT) && defined(MFC_DEBUG)
|
|
|
#pragma comment(lib, "libcmtd.lib")
|
|
|
#else
|
|
|
#pragma comment(lib, "libcmt.lib")
|
|
|
#endif
|
|
|
#else
|
|
|
- #if !defined(_AFX_NO_DEBUG_CRT) && defined(_DEBUG)
|
|
|
+ #if !defined(_AFX_NO_DEBUG_CRT) && defined(MFC_DEBUG)
|
|
|
#pragma comment(lib, "libcd.lib")
|
|
|
#else
|
|
|
#pragma comment(lib, "libc.lib")
|
|
@@ -207,7 +207,7 @@ struct _AFX_FLOAT { BYTE floatBits[sizeof(float)]; };
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
// Diagnostic support
|
|
|
|
|
|
-#ifdef _DEBUG
|
|
|
+#ifdef MFC_DEBUG
|
|
|
|
|
|
BOOL AFXAPI AfxAssertFailedLine(LPCSTR lpszFileName, int nLine);
|
|
|
|
|
@@ -242,7 +242,7 @@ void AFXAPI AfxDump(const CObject* pOb); // Dump an object from CodeView
|
|
|
#define AFX_DUMP0(dc, sz) dc << _T(sz)
|
|
|
#define AFX_DUMP1(dc, sz, p1) dc << _T(sz) << p1
|
|
|
|
|
|
-#else // _DEBUG
|
|
|
+#else // MFC_DEBUG
|
|
|
|
|
|
#define ASSERT(f) ((void)0)
|
|
|
#define VERIFY(f) ((void)(f))
|
|
@@ -255,7 +255,7 @@ inline void AFX_CDECL AfxTrace(LPCTSTR, ...) { }
|
|
|
#define TRACE2(sz, p1, p2)
|
|
|
#define TRACE3(sz, p1, p2, p3)
|
|
|
|
|
|
-#endif // !_DEBUG
|
|
|
+#endif // !MFC_DEBUG
|
|
|
|
|
|
#define ASSERT_POINTER(p, type) \
|
|
|
ASSERT(((p) != NULL) && AfxIsValidAddress((p), sizeof(type), FALSE))
|
|
@@ -279,7 +279,7 @@ inline void AFX_CDECL AfxTrace(LPCTSTR, ...) { }
|
|
|
#pragma warning(disable: 4705) // statement has no effect in optimized code
|
|
|
#pragma warning(disable: 4191) // pointer-to-function casting
|
|
|
// warnings caused by normal optimizations
|
|
|
-#ifndef _DEBUG
|
|
|
+#ifndef MFC_DEBUG
|
|
|
#pragma warning(disable: 4701) // local variable *may* be used without init
|
|
|
#pragma warning(disable: 4702) // unreachable code caused by optimizations
|
|
|
#pragma warning(disable: 4791) // loss of debugging info in release version
|
|
@@ -296,7 +296,7 @@ inline void AFX_CDECL AfxTrace(LPCTSTR, ...) { }
|
|
|
#endif
|
|
|
#endif //!ALL_WARNINGS
|
|
|
|
|
|
-#ifdef _DEBUG
|
|
|
+#ifdef MFC_DEBUG
|
|
|
#define UNUSED(x)
|
|
|
#else
|
|
|
#define UNUSED(x) x
|
|
@@ -553,7 +553,7 @@ public:
|
|
|
void AFX_CDECL FormatMessage(UINT nFormatID, ...);
|
|
|
|
|
|
// input and output
|
|
|
-#ifdef _DEBUG
|
|
|
+#ifdef MFC_DEBUG
|
|
|
friend CDumpContext& AFXAPI operator<<(CDumpContext& dc,
|
|
|
const CString& string);
|
|
|
#endif
|
|
@@ -683,7 +683,7 @@ public:
|
|
|
void PASCAL operator delete(void* p, void* pPlace);
|
|
|
#endif
|
|
|
|
|
|
-#if defined(_DEBUG) && !defined(_AFX_NO_DEBUG_CRT)
|
|
|
+#if defined(MFC_DEBUG) && !defined(_AFX_NO_DEBUG_CRT)
|
|
|
// for file name/line number tracking using DEBUG_NEW
|
|
|
void* PASCAL operator new(size_t nSize, LPCSTR lpszFileName, int nLine);
|
|
|
// __BORLANDC__
|
|
@@ -710,7 +710,7 @@ public:
|
|
|
// Overridables
|
|
|
virtual void Serialize(CArchive& ar);
|
|
|
|
|
|
-#if defined(_DEBUG) || defined(_AFXDLL)
|
|
|
+#if defined(MFC_DEBUG) || defined(_AFXDLL)
|
|
|
// Diagnostic Support
|
|
|
virtual void AssertValid() const;
|
|
|
virtual void Dump(CDumpContext& dc) const;
|
|
@@ -735,7 +735,7 @@ CObject* AFX_CDECL AfxDynamicDownCast(CRuntimeClass* pClass, CObject* pObject);
|
|
|
#define DYNAMIC_DOWNCAST(class_name, object) \
|
|
|
(class_name*)AfxDynamicDownCast(RUNTIME_CLASS(class_name), object)
|
|
|
|
|
|
-#ifdef _DEBUG
|
|
|
+#ifdef MFC_DEBUG
|
|
|
const CObject* AFX_CDECL AfxStaticDownCast(CRuntimeClass* pClass, const CObject* pObject);
|
|
|
CObject* AFX_CDECL AfxStaticDownCast(CRuntimeClass* pClass, CObject* pObject);
|
|
|
#define STATIC_DOWNCAST(class_name, object) \
|
|
@@ -889,7 +889,7 @@ public:
|
|
|
public:
|
|
|
virtual ~CException();
|
|
|
BOOL m_bAutoDelete;
|
|
|
-#ifdef _DEBUG
|
|
|
+#ifdef MFC_DEBUG
|
|
|
void PASCAL operator delete(void* pbData);
|
|
|
#if 0 // __BORLANDC__ was _MSC_VER >= 1200
|
|
|
void PASCAL operator delete(void* pbData, LPCSTR lpszFileName, int nLine);
|
|
@@ -930,7 +930,7 @@ protected:
|
|
|
TCHAR m_szMessage[128];
|
|
|
UINT m_nResourceID;
|
|
|
|
|
|
-#ifdef _DEBUG
|
|
|
+#ifdef MFC_DEBUG
|
|
|
BOOL m_bReadyForDelete;
|
|
|
#endif
|
|
|
};
|
|
@@ -1135,7 +1135,7 @@ public:
|
|
|
// Implementation
|
|
|
public:
|
|
|
virtual ~CArchiveException();
|
|
|
-#ifdef _DEBUG
|
|
|
+#ifdef MFC_DEBUG
|
|
|
virtual void Dump(CDumpContext& dc) const;
|
|
|
#endif
|
|
|
virtual BOOL GetErrorMessage(LPTSTR lpszError, UINT nMaxError,
|
|
@@ -1186,7 +1186,7 @@ public:
|
|
|
// Implementation
|
|
|
public:
|
|
|
virtual ~CFileException();
|
|
|
-#ifdef _DEBUG
|
|
|
+#ifdef MFC_DEBUG
|
|
|
virtual void Dump(CDumpContext&) const;
|
|
|
#endif
|
|
|
virtual BOOL GetErrorMessage(LPTSTR lpszError, UINT nMaxError,
|
|
@@ -1297,7 +1297,7 @@ public:
|
|
|
// Implementation
|
|
|
public:
|
|
|
virtual ~CFile();
|
|
|
-#ifdef _DEBUG
|
|
|
+#ifdef MFC_DEBUG
|
|
|
virtual void AssertValid() const;
|
|
|
virtual void Dump(CDumpContext& dc) const;
|
|
|
#endif
|
|
@@ -1336,7 +1336,7 @@ public:
|
|
|
// Implementation
|
|
|
public:
|
|
|
virtual ~CStdioFile();
|
|
|
-#ifdef _DEBUG
|
|
|
+#ifdef MFC_DEBUG
|
|
|
void Dump(CDumpContext& dc) const;
|
|
|
#endif
|
|
|
virtual DWORD GetPosition() const;
|
|
@@ -1390,7 +1390,7 @@ protected:
|
|
|
|
|
|
public:
|
|
|
virtual ~CMemFile();
|
|
|
-#ifdef _DEBUG
|
|
|
+#ifdef MFC_DEBUG
|
|
|
virtual void Dump(CDumpContext& dc) const;
|
|
|
virtual void AssertValid() const;
|
|
|
#endif
|
|
@@ -1470,7 +1470,7 @@ protected:
|
|
|
CString m_strRoot;
|
|
|
TCHAR m_chDirSeparator; // not '\\' for Internet classes
|
|
|
|
|
|
-#ifdef _DEBUG
|
|
|
+#ifdef MFC_DEBUG
|
|
|
void Dump(CDumpContext& dc) const;
|
|
|
void AssertValid() const;
|
|
|
#endif
|
|
@@ -1524,7 +1524,7 @@ public:
|
|
|
CString Format(UINT nID) const;
|
|
|
|
|
|
// serialization
|
|
|
-#ifdef _DEBUG
|
|
|
+#ifdef MFC_DEBUG
|
|
|
friend CDumpContext& AFXAPI operator<<(CDumpContext& dc,CTimeSpan timeSpan);
|
|
|
#endif
|
|
|
friend CArchive& AFXAPI operator<<(CArchive& ar, CTimeSpan timeSpan);
|
|
@@ -1595,7 +1595,7 @@ public:
|
|
|
#endif
|
|
|
|
|
|
// serialization
|
|
|
-#ifdef _DEBUG
|
|
|
+#ifdef MFC_DEBUG
|
|
|
friend CDumpContext& AFXAPI operator<<(CDumpContext& dc, CTime time);
|
|
|
#endif
|
|
|
friend CArchive& AFXAPI operator<<(CArchive& ar, CTime time);
|
|
@@ -1618,7 +1618,7 @@ struct CFileStatus
|
|
|
BYTE _m_padding; // pad the structure to a WORD
|
|
|
TCHAR m_szFullName[_MAX_PATH]; // absolute path name
|
|
|
|
|
|
-#ifdef _DEBUG
|
|
|
+#ifdef MFC_DEBUG
|
|
|
void Dump(CDumpContext& dc) const;
|
|
|
#endif
|
|
|
};
|
|
@@ -1632,7 +1632,7 @@ BOOL AFXAPI AfxIsValidAddress(const void* lp,
|
|
|
BOOL AFXAPI AfxIsValidString(LPCWSTR lpsz, int nLength = -1);
|
|
|
BOOL AFXAPI AfxIsValidString(LPCSTR lpsz, int nLength = -1);
|
|
|
|
|
|
-#if defined(_DEBUG) && !defined(_AFX_NO_DEBUG_CRT)
|
|
|
+#if defined(MFC_DEBUG) && !defined(_AFX_NO_DEBUG_CRT)
|
|
|
|
|
|
// Memory tracking allocation
|
|
|
void* AFX_CDECL operator new(size_t nSize, LPCSTR lpszFileName, int nLine);
|
|
@@ -1739,13 +1739,13 @@ void AFXAPI AfxDoForAllClasses(void (AFX_CDECL *pfn)(const CRuntimeClass* pClass
|
|
|
#define AfxOutputDebugString(lpsz) ::OutputDebugString(lpsz)
|
|
|
|
|
|
// diagnostic initialization
|
|
|
-#ifndef _DEBUG
|
|
|
+#ifndef MFC_DEBUG
|
|
|
#define AfxDiagnosticInit() TRUE
|
|
|
#else
|
|
|
BOOL AFXAPI AfxDiagnosticInit(void);
|
|
|
#endif
|
|
|
|
|
|
-#endif // _DEBUG
|
|
|
+#endif // MFC_DEBUG
|
|
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
// Archives for serializing CObject data
|
|
@@ -1893,7 +1893,7 @@ protected:
|
|
|
#define AFX_STACK_DUMP_TARGET_CLIPBOARD 0x0002
|
|
|
#define AFX_STACK_DUMP_TARGET_BOTH 0x0003
|
|
|
#define AFX_STACK_DUMP_TARGET_ODS 0x0004
|
|
|
-#ifdef _DEBUG
|
|
|
+#ifdef MFC_DEBUG
|
|
|
#define AFX_STACK_DUMP_TARGET_DEFAULT AFX_STACK_DUMP_TARGET_TRACE
|
|
|
#else
|
|
|
#define AFX_STACK_DUMP_TARGET_DEFAULT AFX_STACK_DUMP_TARGET_CLIPBOARD
|
|
@@ -1944,7 +1944,7 @@ public:
|
|
|
CFile* m_pFile;
|
|
|
};
|
|
|
|
|
|
-#ifdef _DEBUG
|
|
|
+#ifdef MFC_DEBUG
|
|
|
extern AFX_DATA CDumpContext afxDump;
|
|
|
extern AFX_DATA BOOL afxTraceEnabled;
|
|
|
#endif
|
|
@@ -1969,7 +1969,7 @@ extern AFX_DATA BOOL afxTraceEnabled;
|
|
|
#ifdef _AFX_ENABLE_INLINES
|
|
|
#define _AFX_INLINE AFX_INLINE
|
|
|
|
|
|
-#if !defined(_AFX_CORE_IMPL) || !defined(_AFXDLL) || defined(_DEBUG)
|
|
|
+#if !defined(_AFX_CORE_IMPL) || !defined(_AFXDLL) || defined(MFC_DEBUG)
|
|
|
#define _AFX_PUBLIC_INLINE AFX_INLINE
|
|
|
#else
|
|
|
#define _AFX_PUBLIC_INLINE
|