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.

43 lines
763 B

  1. /***
  2. *purevirt.c - stub to trap pure virtual function calls
  3. *
  4. * Copyright (c) 1992, Microsoft Corporation. All rights reserved.
  5. *
  6. *Purpose:
  7. * defines _purecall() -
  8. *
  9. *Revision History:
  10. * 09-30-92 GJF Module created
  11. *
  12. *******************************************************************************/
  13. #include <windows.h>
  14. #include <cruntime.h>
  15. /***
  16. *void _purecall(void) -
  17. *
  18. *Purpose:
  19. *
  20. *Entry:
  21. * No arguments
  22. *
  23. *Exit:
  24. * Never returns
  25. *
  26. *Exceptions:
  27. *
  28. *******************************************************************************/
  29. void __cdecl _purecall(
  30. void
  31. )
  32. {
  33. #if DBG==1
  34. MessageBoxA (NULL
  35. "Pure virtual function call attempted",
  36. "OLE runtime error",
  37. MB_ICONSTOP | MB_OK | MB_TASKMODAL);
  38. #endif
  39. }