Click here to Skip to main content
15,888,257 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: _asm Pin
David Crow10-Jan-06 2:36
David Crow10-Jan-06 2:36 
GeneralRe: _asm Pin
Eytukan10-Jan-06 2:39
Eytukan10-Jan-06 2:39 
AnswerRe: _asm Pin
David Crow10-Jan-06 2:24
David Crow10-Jan-06 2:24 
GeneralRe: _asm Pin
Eytukan10-Jan-06 2:37
Eytukan10-Jan-06 2:37 
GeneralRe: _asm Pin
David Crow10-Jan-06 2:40
David Crow10-Jan-06 2:40 
GeneralRe: _asm Pin
Nish Nishant10-Jan-06 4:17
sitebuilderNish Nishant10-Jan-06 4:17 
GeneralRe: _asm Pin
Eytukan10-Jan-06 4:20
Eytukan10-Jan-06 4:20 
AnswerRe: _asm Pin
Stephen Hewitt10-Jan-06 3:05
Stephen Hewitt10-Jan-06 3:05 
<br />
__asm int 3<br />

A hardcoded breakpoint.

#pragma optimize("y", on) // Force use of frame pointers
DWORD GetMyReturnAddress()
{
	DWORD ReturnAddress;
	_asm
	{
		mov eax, [ebp+4]
		mov dword ptr[ReturnAddress], eax
	}
	return ReturnAddress;
}
#pragma optimize("", on) // Resets the optimizations
Returns its own return address. I believe VC>6 has a intrinsic function to get a functions return address.

Steve
AnswerRe: _asm Pin
Nish Nishant10-Jan-06 4:20
sitebuilderNish Nishant10-Jan-06 4:20 
AnswerRe: _asm Pin
vikas amin11-Jan-06 20:36
vikas amin11-Jan-06 20:36 
QuestionCustomizing a toolbar Pin
Ward10-Jan-06 0:58
Ward10-Jan-06 0:58 
QuestionDll or ActiveX Pin
zon_cpp10-Jan-06 0:31
zon_cpp10-Jan-06 0:31 
AnswerRe: Dll or ActiveX Pin
ThatsAlok10-Jan-06 0:45
ThatsAlok10-Jan-06 0:45 
Questionlooking for a Grid Control Pin
toxcct9-Jan-06 23:47
toxcct9-Jan-06 23:47 
AnswerRe: looking for a Grid Control Pin
ddmcr10-Jan-06 0:05
ddmcr10-Jan-06 0:05 
GeneralRe: looking for a Grid Control Pin
toxcct10-Jan-06 0:10
toxcct10-Jan-06 0:10 
AnswerRe: looking for a Grid Control Pin
Cedric Moonen10-Jan-06 0:07
Cedric Moonen10-Jan-06 0:07 
GeneralRe: looking for a Grid Control Pin
toxcct10-Jan-06 0:09
toxcct10-Jan-06 0:09 
GeneralRe: looking for a Grid Control Pin
ThatsAlok10-Jan-06 0:17
ThatsAlok10-Jan-06 0:17 
GeneralRe: looking for a Grid Control Pin
Rage10-Jan-06 0:22
professionalRage10-Jan-06 0:22 
GeneralRe: looking for a Grid Control Pin
ThatsAlok10-Jan-06 0:35
ThatsAlok10-Jan-06 0:35 
GeneralRe: looking for a Grid Control Pin
toxcct10-Jan-06 0:26
toxcct10-Jan-06 0:26 
GeneralRe: looking for a Grid Control Pin
ThatsAlok10-Jan-06 0:41
ThatsAlok10-Jan-06 0:41 
GeneralRe: looking for a Grid Control Pin
Cedric Moonen10-Jan-06 0:49
Cedric Moonen10-Jan-06 0:49 
GeneralRe: looking for a Grid Control Pin
ThatsAlok10-Jan-06 1:02
ThatsAlok10-Jan-06 1:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.