home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c480 / 20.ddi / MFC / SRC / AFXABORT.CP_ / AFXABORT.CP
Encoding:
Text File  |  1993-02-08  |  903 b   |  36 lines

  1. // This is a part of the Microsoft Foundation Classes C++ library. 
  2. // Copyright (C) 1992 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 Microsoft 
  7. // QuickHelp and/or WinHelp documentation provided with the library. 
  8. // See these sources for detailed information regarding the 
  9. // Microsoft Foundation Classes product. 
  10.  
  11. #include "stdafx.h"
  12.  
  13. #ifdef AFX_AUX_SEG
  14. #pragma code_seg(AFX_AUX_SEG)
  15. #endif
  16.  
  17. //  NOTE: in separate module so if can be replaced if needed
  18.  
  19. #ifdef _AFXDLL
  20. // Callback to abort application if something goes wrong in MFC200.DLL
  21. extern "C"
  22. void AFX_EXPORT CALLBACK AfxAppAbort()
  23. #else
  24. // Otherwise just app specific abort
  25. void AFXAPI AfxAbort()
  26. #endif
  27. {
  28.     TRACE0("AfxAbort called\n");
  29. #ifdef _WINDOWS
  30.     AfxWinTerm();
  31. #endif
  32.     abort();
  33. }
  34.  
  35.  
  36.