|
n00b Quest II(tm)
I am wrote next code in VC6:
#include <iostream>
using namespace std;
int total=0;
void metodOne(){
//__asm int 3;
cout<<"first "<<endl;
}
void metodtwo()
{
cout<<"second "<<endl;
for(int i=0;i<10000;i++){total+=1;}
}
int main(int argc, char* argv[])
{
cout<<"addres: "<<metodOne<<endl;
cout<<"addres: "<<metodtwo<<endl;
metodOne();
metodtwo();
return 0;
}
OUtput:
-------------------
addres: 00401080
addres: 004010F0
first
second
-------------------
Where 00401080 and 004010F0 really entry of metodOne() and metodtwo().
Try set __asm int 3; (and disable in Olly INT 3 breaks )to get 'real' entry point of your code/main or other.
And all breakpoint worked perfeckt.
|