afx编程MFC头文件.docVIP

  • 52
  • 0
  • 约24万字
  • 约 40页
  • 2016-09-13 发布于河南
  • 举报
afx编程MFC头文件

afx编程MFC头文件 // This is a part of the Microsoft Foundation Classes C++ library. // Copyright (C) Microsoft Corporation // All rights reserved. // // This source code is only intended as a supplement to the // Microsoft Foundation Classes Reference and related // electronic documentation provided with the library. // See these sources for detailed information regarding the // Microsoft Foundation Classes product. #ifndef __AFX_H__ #define __AFX_H__ #ifndef __cplusplus #error MFC requires C++ compilation (use a .cpp suffix) #endif #pragma once ///////////////////////////////////////////////////////////////////////////// #ifdef _DLL #ifndef _AFXDLL #error Building MFC application with /MD[d] (CRT dll version) requires MFC shared dll version. Please #define _AFXDLL or do not use /MD[d] #endif #endif #if !defined(_M_IX86) !defined(_M_AMD64) #error Compiling for unsupported platform. Only x86 and x64 platforms are supported by MFC. #endif // Since MFC itself is built with wchar_t as a native type, it will not have // the correct type info for types built with wchar_t typedefd to unsigned // short. Make sure that the users app builds this type info in this case. #ifndef _NATIVE_WCHAR_T_DEFINED #define _AFX_FULLTYPEINFO #endif #ifdef _AFX_MINREBUILD #pragma component(minrebuild, off) #endif #ifdef __ATLDBGMEM_H__ #error atldbgmem.h cannot be used in MFC projects. See AfxEnableMemoryTracking #endif #if defined(_MFC_DLL_BLD) defined(_DEBUG) #ifndef _CRTDBG_MAP_ALLOC #define _CRTDBG_MAP_ALLOC #endif #endif #ifndef _INC_NEW #include new.h #endif #include afxver_.h // Target version control #ifdef _WIN64 #ifndef _AFX_NO_DAO_SUPPORT #define _AFX_NO_DAO_SUPPORT #endif #endif #ifndef _AFX_NOFORCE_LIBS ///////////////////////////////////////////////////////////////////////////// // Win32 libraries #ifndef _AFXDLL #ifndef _UNICODE #ifdef _DEBUG #pragma comment(lib, nafxcwd.lib) #else #pragma comment(lib, nafxcw.lib) #endif #else #ifdef _DEBUG #prag

文档评论(0)

1亿VIP精品文档

相关文档