frameworkconfig.h

来自「这是VCF框架的代码」· C头文件 代码 · 共 951 行 · 第 1/2 页

H
951
字号
	#		pragma comment(lib, "VCF_"_LIB_CPLVERNUM".lib")	#	endif	#elif defined (VCF_USE_ALLIN1_LIB)	#		pragma comment(lib, "version.lib") //link to the version lib for retreiving version info	#		pragma comment(lib, "comctl32.lib") //link to the version lib for retreiving version info	#		pragma comment(lib, "rpcrt4.lib") //link to the version lib for retreiving version info	//	using statically linked library	#	ifdef _DEBUG	#		pragma comment(lib, "VCF_"_LIB_CPLVERNUM"_sd.lib")	#	else	#		pragma comment(lib, "VCF_"_LIB_CPLVERNUM"_s.lib")	#	endif	#else	//	creating the static or dynamic link library	#endif#endif //_MSC_VER#if defined (_MSC_VER) || defined (__DMC__) || defined (__GNUWIN32__) ||defined(__MINGW32__) || defined(__BORLANDC__) || defined(__MWERKS__)  // when we use USE_FOUNDATIONKIT_DLL we always want FOUNDATIONKIT_DLL	// and we save a MACRO defines at the same time.	// Nevertheless USE_FOUNDATIONKIT_DLL cannot replace FOUNDATIONKIT_DLL	// USE_APPLICATIONKIT_DLL implies USE_GRAPHICSKIT_DLL	// USE_GRAPHICSKIT_DLL    implies USE_FOUNDATIONKIT_DLL	// USE_NETKIT_DLL         implies USE_FOUNDATIONKIT_DLL	// USE_OPENGLKIT_DLL	  implies USE_APPLICATIONKIT_DLL	// and 	// USE_APPLICATIONKIT_LIB implies USE_GRAPHICSKIT_LIB	// USE_GRAPHICSKIT_LIB    implies USE_FOUNDATIONKIT_LIB	// USE_NETKIT_LIB         implies USE_FOUNDATIONKIT_LIB	// USE_OPENGLKIT_LIB	  implies USE_OPENGLKIT_LIB	#ifdef USE_NETKIT_DLL	# 	ifndef NETKIT_DLL	#		define NETKIT_DLL	# 	endif	# 	ifndef USE_FOUNDATIONKIT_DLL	#		define USE_FOUNDATIONKIT_DLL	# 	endif	#elif defined (USE_NETKIT_LIB)	# 	ifndef USE_FOUNDATIONKIT_LIB	#		define USE_FOUNDATIONKIT_LIB	# 	endif	#endif	#ifdef USE_OPENGLKIT_DLL	# 	ifndef OPENGLKIT_DLL	#		define OPENGLKIT_DLL	# 	endif	# 	ifndef USE_APPLICATIONKIT_DLL	#		define USE_APPLICATIONKIT_DLL	# 	endif	#elif defined (USE_OPENGLKIT_LIB)	# 	ifndef USE_APPLICATIONKIT_LIB	#		define USE_APPLICATIONKIT_LIB	# 	endif	#endif		#ifdef USE_APPLICATIONKIT_DLL	# 	ifndef APPLICATIONKIT_DLL	#		define APPLICATIONKIT_DLL	# 	endif	# 	ifndef USE_GRAPHICSKIT_DLL	#		define USE_GRAPHICSKIT_DLL	# 	endif	#elif defined (USE_APPLICATIONKIT_LIB)	# 	ifndef USE_GRAPHICSKIT_LIB	#		define USE_GRAPHICSKIT_LIB	# 	endif	#endif	#ifdef USE_GRAPHICSKIT_DLL	# 	ifndef GRAPHICSKIT_DLL	#		define GRAPHICSKIT_DLL	# 	endif	# 	ifndef USE_FOUNDATIONKIT_DLL	#		define USE_FOUNDATIONKIT_DLL	# 	endif	#elif defined (USE_GRAPHICSKIT_LIB)	# 	ifndef USE_FOUNDATIONKIT_LIB	#		define USE_FOUNDATIONKIT_LIB	# 	endif	#endif	#ifdef USE_FOUNDATIONKIT_DLL	#	 ifndef FOUNDATIONKIT_DLL	#		define FOUNDATIONKIT_DLL	#	 endif	#endif#endif/*** Setup attributes for importing/exporting*/// MinGW chokes on inline and __declspec(dllimport) together.// this is lesser of 2 evils hopefully#if defined(VCF_MINGW)	#ifdef FOUNDATIONKIT_DLL	#	if defined(FOUNDATIONKIT_EXPORTS)	#		define FOUNDATIONKIT_API __declspec(dllexport)	#	else	#		define FOUNDATIONKIT_API	#	endif	#else	#	define FOUNDATIONKIT_API	#endif	#ifdef GRAPHICSKIT_DLL	#	if defined(GRAPHICSKIT_EXPORTS)	#		define GRAPHICSKIT_API __declspec(dllexport)	#	else	#		define GRAPHICSKIT_API	#	endif	#else	#	define GRAPHICSKIT_API	#endif	#ifdef APPLICATIONKIT_DLL	#	if defined(APPLICATIONKIT_EXPORTS)	#		define APPLICATIONKIT_API __declspec(dllexport)	#	else	#		define APPLICATIONKIT_API	#	endif	#else	#	define APPLICATIONKIT_API	#endif	#ifdef OPENGLKIT_DLL	#	if defined(OPENGLKIT_EXPORTS)	#		define OPENGLKIT_API __declspec(dllexport)	#	else	#		define OPENGLKIT_API	#	endif	#else	#	define OPENGLKIT_API	#endif	#ifdef NETKIT_DLL	#	if defined(NETKIT_EXPORTS)	#		define NETKIT_API __declspec(dllexport)	#	else	#		define NETKIT_API	#	endif	#else	#	define NETKIT_API	#endif	#else	// Moved here in order to avoid unnecessary repetition later on - ACH	#if defined(FOUNDATIONKIT_DLL) && !defined(VCF_GCC)		#if defined(FOUNDATIONKIT_EXPORTS)			#define FOUNDATIONKIT_API __declspec(dllexport)		#else			#define FOUNDATIONKIT_API __declspec(dllimport)		#endif	#else		#define FOUNDATIONKIT_API	#endif //FOUNDATIONKIT_DLL	#ifdef GRAPHICSKIT_DLL		#if defined(GRAPHICSKIT_EXPORTS)			#define GRAPHICSKIT_API __declspec(dllexport)		#else			#define GRAPHICSKIT_API __declspec(dllimport)		#endif	#else		#define GRAPHICSKIT_API	#endif //GRAPHICSKIT_DLL	#ifdef APPLICATIONKIT_DLL		#if defined(APPLICATIONKIT_EXPORTS)			#define APPLICATIONKIT_API __declspec(dllexport)		#else			#define APPLICATIONKIT_API __declspec(dllimport)		#endif	#else		#define APPLICATIONKIT_API	#endif //APPLICATIONKIT_DLL	#ifdef OPENGLKIT_DLL		#if defined(OPENGLKIT_EXPORTS)			#define OPENGLKIT_API __declspec(dllexport)		#else			#define OPENGLKIT_API __declspec(dllimport)		#endif	#else		#define OPENGLKIT_API	#endif //OPENGLKIT_DLL	#ifdef NETKIT_DLL		#if defined(NETKIT_EXPORTS)			#define NETKIT_API __declspec(dllexport)		#else			#define NETKIT_API __declspec(dllimport)		#endif	#else		#define NETKIT_API	#endif //NETKIT_DLL	#endif/**VCF code should use _typename_, and it gets set appropriately here*/#ifdef _MSC_VER //we are compiling with Microsoft's Visual C++ compiler	//don't define  _typename_ as a "typename" keyword because	//VC6 barfs on it's usage (despite it being part of the C++ standard)	//Note the new addition is due to better vc7.1 C++ compiler compliance,	//many thanks to Raghavendra Chandrashekara for finding this!	#if _MSC_VER < 1310		#define _typename_	#else		#define _typename_ typename	#endif#elif defined(__DMC__)	#define _typename_//#elif defined(__GNUWIN32__)#elif defined(VCF_GCC)	#define _typename_ typename#elif defined(VCF_BCC)	#define _typename_ typename#elif defined(VCF_CW)	#define _typename_ typename#endif //_MSC_VER/**special macro for handling multi-character constants like 'abcd' which GCC is unhappy with :(The same is with BCC.*/#if defined(VCF_GCC) || defined(VCF_BCC)	#define CHAR_CONST(x) (unsigned long) x#else	#define CHAR_CONST(x) x#endif/***CVS Log info*$Log$*Revision 1.7  2006/04/07 02:35:34  ddiego*initial checkin of merge from 0.6.9 dev branch.**Revision 1.6.2.12  2006/03/24 14:43:22  obirsoy*better handling of _CRT_SECURE_NO_DEPRECATE and _CRT_NONSTDC_NO_DEPRECATE macors**Revision 1.6.2.11  2006/03/19 00:04:16  obirsoy*Linux FoundationKit improvements.**Revision 1.6.2.10  2006/02/28 14:39:55  kiklop74*Fixed version check for BDS 2006**Revision 1.6.2.9  2006/02/08 02:06:31  ddiego*updated more vc80 projects.**Revision 1.6.2.8  2006/02/06 02:58:51  dougtinkham*remove __declspec(dllimport) attribute for MinGW - inline problems**Revision 1.6.2.7  2006/01/19 06:04:58  dougtinkham*removed warning for mingw**Revision 1.6.2.6  2006/01/02 13:27:05  kiklop74*Warning 8098 for BDS 2006**Revision 1.6.2.5  2005/12/23 23:07:18  kiklop74*Added detection of new Borland compiler shipped in BDS 2006. New symbol has name VCF_BCC8**Revision 1.6.2.4  2005/12/23 22:55:05  kiklop74*Disabled one more worning for Borland compiler**Revision 1.6.2.3  2005/11/10 00:04:07  obirsoy*changes required for gcc under Linux.**Revision 1.6.2.2  2005/11/02 04:38:23  obirsoy*changes required for vc80 support.**Revision 1.6.2.1  2005/10/07 19:31:53  ddiego*merged patch 1315995 and 1315991 into dev repos.**Revision 1.6  2005/07/21 00:41:36  ddiego*minor changes.**Revision 1.5  2005/07/09 23:15:03  ddiego*merging in changes from devmain-0-6-7 branch.**Revision 1.4  2005/01/02 03:04:23  ddiego*merged over some of the changes from the dev branch because they're important resoource loading bug fixes. Also fixes a few other bugs as well.**Revision 1.3.2.6  2005/04/17 16:11:31  ddiego*brought the foundation, agg, and graphics kits uptodate on linux**Revision 1.3.2.5  2005/04/11 17:07:12  iamfraggle*Changes allowing compilation of Win32 port under CodeWarrior**Revision 1.3.2.4  2004/12/22 03:38:43  marcelloptr*fixed VCF_COMPILER_NAME macro so less error prone.*This also makes getExecutableNameFromBundlePath() to work right.**Revision 1.3  2004/12/01 04:31:40  ddiego*merged over devmain-0-6-6 code. Marcello did a kick ass job*of fixing a nasty bug (1074768VCF application slows down modal dialogs.)*that he found. Many, many thanks for this Marcello.**Revision 1.2.2.2  2004/09/15 04:25:52  ddiego*fixed some issues that duff had with the examples, plu added the ability to get the platforms version and name and compiler**Revision 1.2.2.1  2004/08/17 05:01:32  marcelloptr*improved macros for library selection**Revision 1.2  2004/08/07 02:49:13  ddiego*merged in the devmain-0-6-5 branch to stable**Revision 1.1.2.8  2004/07/30 17:28:40  kiklop74*Added first release of Borland midifications for VCF**Revision 1.1.2.7  2004/07/01 04:02:17  ddiego*minor stuff**Revision 1.1.2.6  2004/06/30 21:30:03  ddiego*minor mods to copy/paste code in DocumentManager**Revision 1.1.2.5  2004/06/29 03:17:41  marcelloptr*minor fixes on import/export library macros**Revision 1.1.2.4  2004/06/06 07:05:32  marcelloptr*changed macros, text reformatting, copyright sections**Revision 1.1.2.2  2004/04/29 04:07:07  marcelloptr*reformatting of source files: macros and csvlog and copyright sections**Revision 1.1.2.1  2004/04/28 03:29:39  ddiego*migration towards new directory structure**Revision 1.26.2.3  2004/04/26 21:58:20  marcelloptr*changes for dir reorganization: _VCF_MACRO_H__**Revision 1.26.2.2  2004/04/09 01:27:56  marcelloptr*eliminated warning on WINVER already defined**Revision 1.26.2.1  2004/04/06 17:19:15  ddiego*minor header changes to better facilitate compiling with*mingw. Also some minor changes to the devcpp FoundationKit project.**Revision 1.26  2004/04/03 15:48:40  ddiego*Merged over code from the 0-6-3 branch.**Revision 1.25  2004/02/16 20:38:16  ddiego*applied patch from Bobby Ward for further fixes for VC71 compiling**Revision 1.24  2004/02/15 21:55:36  ddiego*Added changes for vc7.1 compiler, many thanks to Raghavendra Chandrashekara for helping with this.**Revision 1.23  2003/12/18 05:15:57  ddiego*merge from devmain-0-6-2 branch into the stable branch**Revision 1.22.4.3  2003/12/02 22:11:01  ddiego*some minor changes to support Actions. Still not done yet.**Revision 1.22.4.2  2003/10/23 04:24:50  ddiego*more musical chairs with headers again, in yet another attempt to make*them more efficent to speed up compiles.*Removed all teh template RTTI classes and put them all in one header*called VCFRTTIImpl.h. This should help compile speeds a bit.*The next step is to look at some of the event classes and remove ones*that aren't really neccessary - I'd estimate that 50% of the current*event classes are unneccessary and can be removed.**Revision 1.22.4.1  2003/08/25 15:50:50  ddiego*added a definition of both WINVER 0x0400 and _WIN32_WINNT 0x0400*to ensure proper structure sizes, etc**Revision 1.22  2003/05/17 20:37:03  ddiego*this is the checkin for the 0.6.1 release - represents the merge over from*the devmain-0-6-0 branch plus a few minor bug fixes**Revision 1.21.2.3  2003/05/15 03:01:00  ddiego*added initial osx source( FoundationKit only),*plus some fixes to compile under GCC 3.x compilers**Revision 1.21.2.2  2003/04/17 04:29:45  ddiego*updated scintilla, added gtk support for the application kit, with stubs*for the basic peers.**Revision 1.21.2.1  2003/03/23 03:23:45  marcelloptr*3 empty lines at the end of the files**Revision 1.21  2003/02/26 04:30:38  ddiego*merge of code in the devmain-0-5-9 branch into the current tree.*most additions are in the area of the current linux port, but the major*addition to this release is the addition of a Condition class (currently*still under development) and the change over to using the Delegate class*exclusively from the older event handler macros.**Revision 1.20.2.2  2002/12/27 23:04:31  marcelloptr*Improved macros for automatic import/export of libraries. - Warning fixes. - Other Minor Changes.**Revision 1.20.2.1  2002/11/28 05:12:04  ddiego*modifications to allow the VCF to compile with MinGW. This also cleans up*some warnings with GCC - should improve the linux side as well.*In addition this checkin includes new files for building the VCF under*the DevC++ IDE. these are in the vcf/build/devcpp directory.**Revision 1.20  2002/11/18 00:46:07  ddiego*this is the merge over of all the bug fixes and features (mostly*VCF Builder stuff) from the devmain-0-5-8 branch**Revision 1.19.4.2  2002/11/04 04:50:17  ddiego*bug fixes are:*void Win32MenuItem::clearChildren(), was passing in an incorrect index into DeleteMenu()*fixed an issue when deleting a project from a workspace. This was crashing due to open*documents with bad pointers. Closing a project now closes all open documents that are*associated with the project*Verified that the new file and new class and new form, and new project and checking the validity of*entered data.*Fixed a bug in Win32Dialog where the Frame::allowClose() virtual method was not being*called.*Fixed a bug in the Delegate class which would allow multiple additions of the same event handler.**Revision 1.19.4.1  2002/11/02 20:51:56  ddiego*fixed NT4 menu bug 533453 Disapearing menu items on WinNT 4*also added soem bug fixes for hte VCF Builder and some empty name*error checking in the Win32FileStream class**Revision 1.19  2002/09/12 03:26:03  ddiego*merged over the changes from the devmain-0-5-5b branch**Revision 1.18.6.2  2002/08/15 01:12:58  ddiego*changes to the xmake makefiles adding preliminary support for MinGW*WARJNING: doesn't yet compile, or at least not on my machine**Revision 1.18.6.1  2002/07/02 05:35:10  marcelloptr*fixes for vc6, vc7, separated builds, automatic library selection, stlport**Revision 1.18  2002/05/09 03:10:42  ddiego*merged over code from development branch devmain-0-5-1a into the main CVS trunk**Revision 1.17.4.2  2002/04/27 15:42:26  ddiego*removed ApplicationKit.h and optimized header includes as*well as adding better include guard support**Revision 1.17.4.1  2002/03/20 21:56:55  zzack*Changed Include Style of FoundationKit**Revision 1.17  2002/01/24 01:46:47  ddiego*added a cvs "log" comment to the top of all files in vcf/src and vcf/include*to facilitate change tracking**/#endif // _VCF_FOUNDATIONKITCONFIG_H__

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?