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

  1. /***
  2. *dllargv.c - Dummy _setargv() routine for use with C Run-Time as a DLL (CRTDLL)
  3. *
  4. *       Copyright (c) 1992-1997, Microsoft Corporation. All rights reserved.
  5. *
  6. *Purpose:
  7. *       This object goes into CRTDLL.LIB, which is linked with user programs
  8. *       to use CRTDLL.DLL for C run-time library functions.  If the user
  9. *       program links explicitly with SETARGV.OBJ, this object will not be
  10. *       linked in, and the _setargv() that does get called with set the flag
  11. *       that will enable wildcard expansion.  If SETARGV.OBJ is not linked
  12. *       into the EXE, this object will get called by the CRT start-up stub
  13. *       and the flag to enable wildcard expansion will not be set.
  14. *
  15. *******************************************************************************/
  16.  
  17.  
  18. #ifdef CRTDLL
  19.  
  20. #include <cruntime.h>
  21. #include <internal.h>
  22.  
  23. /***
  24. *_setargv - dummy version for CRTDLL.DLL model only
  25. *
  26. *Purpose:
  27. *       This routine gets called by the C Run-Time start-up code in CRTEXE.C
  28. *       which gets linked into an EXE file linked with CRTDLL.LIB.  It does
  29. *       nothing, but if the user links the EXE with SETARGV.OBJ, this routine
  30. *       will not get called but instead __setargv() will be called.  (In the
  31. *       CRTDLL model, it will set the variable that is passed to _GetMainArgs
  32. *       and enable wildcard expansion in the command line arguments.)
  33. *
  34. *Entry:
  35. *
  36. *Exit:
  37. *
  38. *Exceptions:
  39. *
  40. *******************************************************************************/
  41.  
  42. #ifdef WPRFLAG
  43. void __cdecl _wsetargv ( void )
  44. #else  /* WPRFLAG */
  45. void __cdecl _setargv ( void )
  46. #endif  /* WPRFLAG */
  47. {
  48.         /* NOTHING */
  49. }
  50.  
  51. #endif  /* CRTDLL */
  52.  
  53.