home *** CD-ROM | disk | FTP | other *** search
/ Team Palmtops 7 / Palmtops_numero07.iso / WinCE / SDKWindowsCE / HandHeldPCPro30 / sdk.exe / Jupiter SDK / data1.cab / MFC / include / wce.h < prev    next >
Encoding:
C/C++ Source or Header  |  1999-02-19  |  8.1 KB  |  277 lines

  1. // This is a part of the Microsoft Foundation Classes C++ library.
  2. // Copyright (C) 1992-1998 Microsoft Corporation
  3. // All rights reserved.
  4. //
  5. // This source code is only intended as a supplement to the
  6. // Microsoft Foundation Classes Reference and related
  7. // electronic documentation provided with the library.
  8. // See these sources for detailed information regarding the
  9. // Microsoft Foundation Classes product.
  10.  
  11. // Modify this file when creating custom builds of MFCCE.
  12.  
  13. #ifndef __WCE_H__
  14. #define __WCE_H__
  15. #pragma warning(disable: 4005)
  16.  
  17. // Define official (Microsoft-only) DLL names using the format: 
  18. //    MFCCE/OLECE + version number + suffix + extension, 
  19. //    where suffix = "" for release , "d" for debug, and "i" for localization.
  20. //    The suffix and extension are specified when the macros are invoked.
  21. #define WCE_MFC_FILENAME(ext) MAKE_FILENAME_1(MFCCE,_WIN32_WCE,ext)
  22. #define WCE_OLE_FILENAME(ext) MAKE_FILENAME_1(OLECE,_WIN32_WCE,ext)
  23.  
  24. // For custom MFCCE builds, the above macros should be should be replaced with
  25. // hardcoded library names that don't conflict with the names by those macros.
  26. // Examples: (for MYMFCD.LIB, MYOLED.LIB, etc.)
  27. //#define WCE_MFC_FILENAME(ext) MAKE_FILENAME(MYMFC,ext)
  28. //#define WCE_OLE_FILENAME(ext) MAKE_FILENAME(MYOLE,ext)
  29.  
  30. // Specify Palm-Sized PC build
  31. //#define _WIN32_WCE_PSPC // (forces some pruning--see below)
  32.  
  33. // MFCCE pruning flags
  34. //#define _WIN32_WCE_NO_PRINTING
  35. //#define _WIN32_WCE_NO_COLORDLG
  36. //#define _WIN32_WCE_NO_WINSOCK
  37. //#define _WIN32_WCE_NO_WININET
  38. //#define _WIN32_WCE_NO_OLE
  39. //#define _WIN32_WCE_NO_CURSOR
  40. //#define _WIN32_WCE_NO_PALETTE 
  41. //#define _WIN32_WCE_NO_FINDREPLACE
  42. //#define _WIN32_WCE_NO_CONTROLBARS
  43.  
  44. // DLL thunking (the earlier form of delayed library loading)
  45. // When thunking is disabled, the corresponding OS library becomes a
  46. // dependency at link-time.
  47. //#define _WIN32_WCE_NO_COMMDLG_THUNKS  
  48. //#define _WIN32_WCE_NO_WINSOCK_THUNKS
  49. //#define _WIN32_WCE_NO_WININET_THUNKS
  50. //#define _WIN32_WCE_NO_OLE_THUNKS     
  51.  
  52. // Set the private build version number
  53. #define _MFC_RBLD        0
  54. #define _MFC_USER_RBLD   "0"
  55.  
  56. // Check OS version number
  57. #if !defined(_WIN32_WCE)
  58.     #error _WIN32_WCE is not set to 200 or greater
  59. #elif (_WIN32_WCE < 200)
  60.     #error Can not build for OS versions earlier than 2.0
  61. #endif // _WIN32_WCE
  62.  
  63. // Prune for H/PC 2.0 builds
  64. #if (_WIN32_WCE == 200) || (_WIN32_WCE == 201)
  65.     #define _WIN32_WCE_NO_CURSOR
  66. #endif // _WIN32_WCE
  67.  
  68. // Define helper macros used for defining the MFCCE library names at the beginning
  69. // of this file. In the versioned case, two macro expansion steps are necessary to 
  70. // force evaulation of _WIN32_WCE before the tokenizing operators are used.
  71. #define MAKE_FILENAME(name, ext) #name #ext
  72. #define MAKE_FILENAME_1(name, ver, ext) MAKE_FILENAME_2(name, ver, ext)
  73. #define MAKE_FILENAME_2(name, ver, ext) #name #ver #ext
  74.  
  75. // Define library names that may differ for emulation
  76. #if defined(_WIN32_WCE_EMULATION) && (_WIN32_WCE <= 201) 
  77.     #define WCE_COMMDLG_LIB  "commdlgm.lib"
  78.     #define WCE_COMMDLG_DLL  "commdlgm.dll"
  79.     #define WCE_WINSOCK_LIB  "winsockm.lib"
  80.     #define WCE_WINSOCK_DLL  "winsockm.dll"
  81.     #define WCE_WININET_LIB  "wininetm.lib"
  82.     #define WCE_WININET_DLL  "wininetm.dll"
  83.     #define WCE_OLE32_LIB    "ole32m.lib"
  84.     #define WCE_OLE32_DLL    "ole32m.dll"
  85.     #define WCE_OLEAUT32_LIB "oleautm.lib"
  86.     #define WCE_OLEAUT32_DLL "oleautm.dll"
  87. #else // _WIN32_WCE_EMULATION
  88.     #define WCE_COMMDLG_LIB  "commdlg.lib"
  89.     #define WCE_COMMDLG_DLL  "commdlg.dll"
  90.     #define WCE_WINSOCK_LIB  "winsock.lib"
  91.     #define WCE_WINSOCK_DLL  "winsock.dll"
  92.     #define WCE_WININET_LIB  "wininet.lib"
  93.     #define WCE_WININET_DLL  "wininet.dll"
  94.     #define WCE_OLE32_LIB    "ole32.lib"
  95.     #define WCE_OLE32_DLL    "ole32.dll"
  96.     #define WCE_OLEAUT32_LIB "oleaut32.lib"
  97.     #define WCE_OLEAUT32_DLL "oleaut32.dll"
  98. #endif // _WIN32_WCE_EMULATION
  99.     
  100. // Prune for Palm-Sized PC build
  101. #if defined(_WIN32_WCE_PSPC)
  102.     #undef  _WIN32_WCE
  103.     #define _WIN32_WCE 201
  104.     #define _WIN32_WCE_NO_OLE
  105.     #define _WIN32_WCE_NO_PRINTING
  106.     #define _WIN32_WCE_NO_COLORDLG
  107.     #define _WIN32_WCE_NO_CURSOR
  108. #endif // _WIN32_WCE_PSPC
  109.  
  110. // Prune COMMDLG.DLL (implied by no printing and no color dialog support)
  111. #if defined(_WIN32_WCE_NO_PRINTING) && defined(_WIN32_WCE_NO_COLORDLG)
  112.     #define _INC_CDERR    // OS header
  113.     #define _WIN32_WCE_NO_COMMDLG
  114.     #define _WIN32_WCE_NO_COMMDLG_THUNKS
  115. #endif // !_WIN32_WCE_NO_PRINTING && !_WIN32_WCE_NO_COLORDLG
  116.  
  117. // Prune WINSOCK.DLL
  118. #if defined(_WIN32_WCE_NO_WINSOCK)
  119.     #define __AFXSOCK_H_ // MFC header
  120.     #define _WINSOCKAPI_ // OS header
  121.     #define _AFX_NO_SOCKET_SUPPORT
  122.     #define _WIN32_WCE_NO_WININET // _WIN32_WCE_NO_WINSOCK imples this
  123.     #define _WIN32_WCE_NO_WINSOCK_THUNKS
  124. #endif // _WIN32_WCE_NO_WININET
  125.  
  126. // Prune WININET.DLL
  127. #if defined(_WIN32_WCE_NO_WININET)
  128.     #define __AFXINET_H_ // MFC header
  129.     #define _WININET_    // OS header
  130.     #define _AFX_NO_INET_SUPPORT
  131.     #define _WIN32_WCE_NO_WININET_THUNKS
  132. #endif // _WIN32_WCE_NO_WININET
  133.  
  134. // Prune OLE32.DLL/OLEAUT32.DLL
  135. #if defined(_WIN32_WCE_NO_OLE)
  136.     #define __AFXOLE_H__ // MFC header
  137.     #define __AFXCTL_H__ // MFC header
  138.     #define _AFX_NO_OLE_SUPPORT
  139.     #define _AFX_NO_OCC_SUPPORT
  140.     #define _AFX_NO_OCX_SUPPORT
  141.     #define _WIN32_WCE_NO_OLE_THUNKS
  142. #endif // _WIN32_WCE_NO_OLE
  143.  
  144. // Prune unsupported MFC features
  145. #define _WIN32_WCE_NO_DELAYLOAD
  146. #define _WIN32_WCE_NO_FTP
  147. #define _WIN32_WCE_NO_TOOLTIPS
  148. #define _WIN32_WCE_NO_DOCKBARS
  149. #define _WIN32_WCE_NO_GDITRANSFORM
  150. #define _WIN32_WCE_NO_CONTEXTHELP 
  151. #define _AFX_NO_DEBUG_CRT
  152. #define _AFX_NO_DOCOBJECT_SUPPORT
  153. #define _AFX_NO_RICHEDIT_SUPPORT
  154. #define _AFX_NO_CTL3D_SUPPORT
  155. #define _AFX_NO_DAO_SUPPORT
  156. #define _AFX_NO_DB_SUPPORT
  157. #define _AFX_NO_OLEDB_SUPPORT
  158. #define _AFX_NO_CTL3D_RESOURCES
  159. #define _AFX_NO_OCC_RESOURCES
  160. #define _AFX_NO_MAPI_RESOURCES
  161. #define _AFX_NO_OLE_RESOURCES
  162. #define _AFX_NO_STOCKPPG_RESOURCES
  163. #define _AFX_OLD_EXCEPTIONS
  164.  
  165. // Prune unsupported MFC/OS headers
  166. #define __AFXODLGS_H__
  167. #define __AFXDOCOB_H__
  168. #define __AFXHTML_H__
  169. #define _INC_STDIO
  170. #define _INC_NEW
  171. #define _INC_TIME
  172. #define _INC_STDDEF
  173. #define _INC_DLGS
  174. #define _INC_CDERR
  175. #define _INC_DDEMLH
  176. #define _INC_PROCESS
  177. #define _INC_IO
  178. #define _INC_ERRNO
  179. #define _INC_TYPES
  180. #define _INC_STAT
  181. #define _INC_FCNTL
  182. #define _OLEDLG_H_
  183. #define _SHLOBJ_H_
  184. #define _OLEAUT32_
  185. #define _WINSPOOL_
  186. #define _WINNETWK_
  187. #define __msdadc_h__
  188. #define __urlmon_h__
  189. #define __docobj_h__
  190. #define __oledb_h__
  191. #define _DDEHEADER_INCLUDED_
  192. #define _DLGSH_INCLUDED_
  193. #define __SQLEXT
  194. #define __SQL
  195. #define VER_H
  196.  
  197. // Disable thunking for static builds or if delay loading is available
  198. #if !defined(_AFXDLL) || !defined(_WIN32_WCE_NO_DELAYLOAD)
  199.     #define _WIN32_WCE_NO_COMMDLG_THUNKS
  200.     #define _WIN32_WCE_NO_WINSOCK_THUNKS
  201.     #define _WIN32_WCE_NO_WININET_THUNKS
  202.     #define _WIN32_WCE_NO_OLE_THUNKS
  203. #endif
  204.  
  205. // Additional definitions per CPU type
  206. #if defined(SH3) || defined(_SH3_) 
  207.     #undef   SHx
  208.     #define  SHx
  209.     #undef   SH3
  210.     #define  SH3
  211.     #undef  _SH3_
  212.     #define _SH3_
  213. #elif defined(SH4) || defined(_SH4_)
  214.     #undef   SHx
  215.     #define  SHx
  216.     #undef   SH4
  217.     #define  SH4
  218.     #undef  _SH4_
  219.     #define _SH4_
  220. #elif defined(MIPS) || defined(_MIPS_) 
  221.     #undef   MIPS
  222.     #define  MIPS
  223.     #undef  _MIPS_
  224.     #define _MIPS_
  225. #elif defined(PPC) || defined(_PPC_) 
  226.     #undef   PPC
  227.     #define  PPC
  228.     #undef  _PPC_
  229.     #define _PPC_
  230. #elif defined(ARM) || defined(_ARM_) 
  231.     #undef   ARM
  232.     #define  ARM
  233.     #undef  _ARM_
  234.     #define _ARM_
  235. #elif defined(x86)
  236. #elif defined(_WIN32_WCE_EMULATION)
  237. #endif
  238.  
  239. // Misc. definitions
  240. #define  _AFX_PORTABLE
  241. #undef   UNDER_CE
  242. #define  UNDER_CE _WIN32_WCE
  243. #undef  _MBCS 
  244. #undef   UNICODE
  245. #define  UNICODE
  246. #undef  _UNICODE
  247. #define _UNICODE
  248. #undef   WIN32
  249. #define  WIN32
  250. #if (_WIN32_WCE < 210)
  251. #undef   COREDLL
  252. #define  COREDLL
  253. #endif // _WIN32_WCE
  254. #undef  _WINDOWS
  255. #define _WINDOWS
  256. #undef  _CRTIMP
  257. #define _CRTIMP
  258. #undef  _MT
  259. #define _MT
  260. #undef   STRICT
  261. #define  STRICT
  262. #undef   NDEBUG
  263. #define  NDEBUG
  264. #undef   ENABLE_TRACE
  265. #if defined(DEBUG) || defined(_DEBUG)
  266.     #undef   DEBUG
  267.     #define  DEBUG
  268.     #undef  _DEBUG
  269.     #define _DEBUG
  270.     #undef   ENABLE_TRACE
  271.     #define  ENABLE_TRACE
  272. #endif
  273.  
  274. #pragma warning(default: 4005)
  275. #endif // __WCE_H__
  276.  
  277.