home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / vc98 / crt / src / xncommod.c < prev    next >
C/C++ Source or Header  |  1998-06-17  |  887b  |  24 lines

  1. /***
  2. *xncommode.c - set global file commit mode flag to nocommit
  3. *
  4. *       Copyright (c) 1990-1997, Microsoft Corporation. All rights reserved.
  5. *
  6. *Purpose:
  7. *       Sets the global file commit mode flag to nocommit.  This is the default.
  8. *
  9. *       This is a special version for the DLL model.  This object goes into
  10. *       MSVCRT.LIB (and therefore into the client EXE) and not into the
  11. *       CRTL in a DLL (MSVCRTXX.DLL).  It is identical to ncommode.obj
  12. *       except that the latter has a DLL export definition in the DLL model.
  13. *
  14. *******************************************************************************/
  15.  
  16. #define SPECIAL_CRTEXE  /* turn off _CRTIMP for decl. of _commode */
  17. #define _DLL            /* also necessary to turn off _CRTIMP */
  18.  
  19. #include <cruntime.h>
  20. #include <internal.h>
  21.  
  22. /* set default file commit mode to nocommit */
  23. int _commode = 0;
  24.