Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
1.2 KiB

  1. //////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Copyright (c) 1999-2000 Microsoft Corporation
  4. //
  5. // Module Name:
  6. // README.TXT
  7. //
  8. // Maintained By:
  9. // Geoffrey Pease (GPEASE) 22-NOV-1999
  10. //
  11. //////////////////////////////////////////////////////////////////////////////
  12. THE QUICK AND DIRTY HOW TO INCLUDE THE DEBUG LIBRARY:
  13. 1. Create a DEBUG.CPP and CITRACKER.CPP in your project.
  14. 2. In DEBUG.CPP include DebugSrc.CPP from this directory.
  15. In CITRACKER.CPP include CITrackerSrc.CPP from this directory.
  16. Example of DEBUG.CPP:
  17. #include "pch.h" // your pre-compiled header for your project.
  18. #include "DebugSrc.cpp" // pull in the common version.
  19. 3. Your code must contain an instance of the following global variables:
  20. HINSTANCE g_hInstance; // module instance
  21. LONG g_cObjects; // COM object instance counter
  22. 4. Call TraceInitializeProcess( ... ) when you are started. For DLLs, call
  23. this in your DllMain( ). For applications, call this in your Win/main( ).
  24. 5. Call TraceTerminateProcess( ... ) before you terminate. For DLLs, call this
  25. in your DllMain( ) for DLL_PROCESS_DETACH. For applications, call this just
  26. before your Win/main( ) returns.