home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / atl / minimal / minimal.txt < prev    next >
Text File  |  1998-03-26  |  1KB  |  33 lines

  1.  
  2. MINIMAL
  3.  
  4. This sample implements a minimalistic DLL server, to show how DLL's developed with ATL
  5. can be very small.
  6. The sever has a single COM object, with one custom interface with one method.
  7.  
  8. HOW TO RUN IT:
  9.  
  10. Build MINIMAL.DLL. The DLL is NOT self registering, so you will have to use regedit to
  11. merge the provided MNIMAL.REG file. This .reg file does not have a path specified under
  12. the InProcServer32 key (i.e. InProcServer32 = minimal.dll): you will have either to
  13. modify the entry with a full path (e.g. InProcServer32 = c:\<your path>\minimal.dll) or have
  14. your DLL in the system path.
  15. Open the MINDRIV project (a console app) in the minimal\mindriv
  16. subdirectory, build and run from debugger or command line.
  17.  
  18.  
  19. REMARKS:
  20.  
  21. This project does not make use of any OLD/IDL file to define the interfaces. Instead, it
  22. shows how to define custom interface directly from C++ (see minimal.h).
  23.  
  24. The DLL server's size is reduced because:
  25.  
  26. * The DLL has no resources associated with it (i.e. no RC file)
  27. * Threre is no registration code (it uses a separate REG file), and no
  28.   DllRegisterServer()/DllUnregisterServer() entry points.
  29. * Uses #define _ATL_MIN_CRT and specifies DllMain as the entry point: CRTs are not linked in
  30. * Exception handling is disabled.
  31. * The project uses #define _ATL_NO_FORCE_LIBS and links in only the needed libraries
  32.   (to avoid UUID.LIB, in minimal.cpp we define the IID's ATL is using)
  33.