Raz-Soft » Blog Archive » BPX (INT3) Buy Cheap Software
Bulina rosie si pe carti? »
« The C++ Resources Network

BPX (INT3)

C++:
  1. //----- do stuff
  2. #ifdef _DEBUG
  3.    if (IsDebuggerPresent())  //debugger present?
  4.    {                      
  5.                 asm { INT 3 } //breakpoint here, something went wrong analyze your code  ; )
  6.                 Beep();
  7.    }
  8. #endif
  9. //----- do more stuff

related things:

Author: Raz | On February 22nd, 2007 | C/C++, C++ Builder | 2 Comments

Q: So what can I do next?
A: You can Buy me a Beer or Coffee. You can say Hi! or peek on the related stuff. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

    2 Responses to “BPX (INT3)”

  1. gigi ROMANIA Says:

    Asta e protectie impotriva softice ? sau dissasemblers ? :)) pui nop in locul codului de mai sus si ai scapat de griji ..


  2. Raz ROMANIA Says:

    cine a zis ca e protectie? :)) e un #ifdef _DEBUG mai sus daca nu ai observat, nu face decat sa-ti introduca un breakpoint in IDE/codul -ul tau atunci cand esti pe debug...


Leave a Reply

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong> and all YM emotions