Click here to Skip to main content
15,891,375 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: OT Pin
Cedric Moonen11-Jan-10 7:55
Cedric Moonen11-Jan-10 7:55 
GeneralRe: OT Pin
CPallini11-Jan-10 7:59
mveCPallini11-Jan-10 7:59 
AnswerRe: Help on error Pin
Richard MacCutchan11-Jan-10 8:44
mveRichard MacCutchan11-Jan-10 8:44 
JokeHey Richard Pin
CPallini11-Jan-10 8:53
mveCPallini11-Jan-10 8:53 
GeneralRe: Hey Richard Pin
Richard MacCutchan11-Jan-10 8:58
mveRichard MacCutchan11-Jan-10 8:58 
JokeRe: Hey Richard Pin
CPallini11-Jan-10 9:39
mveCPallini11-Jan-10 9:39 
GeneralRe: Hey Richard Pin
Richard MacCutchan11-Jan-10 11:35
mveRichard MacCutchan11-Jan-10 11:35 
Questionhow to write a function in a file at binary level (after compilation) Pin
Joseph Marzbani11-Jan-10 6:15
Joseph Marzbani11-Jan-10 6:15 
I know this may look a little more than a little strange! But for a reason I want to write a whole function in a file at run-time. OK, let's do some clarification:

see you have a function like:
void foo ()
{
        your code ...
}

after compilation we have some thing like:
// foo()
 
push 210
mov eax, ebx
...

and in binary level:
// foo()

E8 00 DA 65 00 00 DF


What I need is to write these binary codes in a file.

Note

1- There's no such an instruction like mov eax, eip or pop eip in Intel instruction set. Actually there's no instruction to get or set eip directlt.

Thank you masters!

QuestionRe: how to write a function in a file at binary level (after compilation) Pin
CPallini11-Jan-10 6:36
mveCPallini11-Jan-10 6:36 
AnswerRe: how to write a function in a file at binary level (after compilation) Pin
Joseph Marzbani11-Jan-10 6:47
Joseph Marzbani11-Jan-10 6:47 
GeneralRe: how to write a function in a file at binary level (after compilation) Pin
CPallini11-Jan-10 6:52
mveCPallini11-Jan-10 6:52 
AnswerRe: how to write a function in a file at binary level (after compilation) Pin
Bram van Kampen11-Jan-10 16:01
Bram van Kampen11-Jan-10 16:01 
Questiondetect a hole in a binary image Pin
franckesh11-Jan-10 5:31
franckesh11-Jan-10 5:31 
AnswerRe: detect a hole in a binary image Pin
Nelek11-Jan-10 5:52
protectorNelek11-Jan-10 5:52 
GeneralRe: detect a hole in a binary image Pin
franckesh11-Jan-10 5:59
franckesh11-Jan-10 5:59 
GeneralRe: detect a hole in a binary image Pin
Nelek11-Jan-10 6:23
protectorNelek11-Jan-10 6:23 
AnswerRe: detect a hole in a binary image Pin
Chris Losinger11-Jan-10 7:23
professionalChris Losinger11-Jan-10 7:23 
AnswerRe: detect a hole in a binary image Pin
Rozis11-Jan-10 15:12
Rozis11-Jan-10 15:12 
AnswerRe: detect a hole in a binary image Pin
Bram van Kampen11-Jan-10 16:15
Bram van Kampen11-Jan-10 16:15 
GeneralRe: detect a hole in a binary image Pin
franckesh11-Jan-10 23:19
franckesh11-Jan-10 23:19 
AnswerRe: detect a hole in a binary image Pin
Shiju PK12-Jan-10 0:56
professionalShiju PK12-Jan-10 0:56 
AnswerRe: detect a hole in a binary image Pin
Alan Balkany12-Jan-10 5:20
Alan Balkany12-Jan-10 5:20 
QuestionAdding a browse button internal to an Edit Control Pin
maycockt11-Jan-10 3:54
maycockt11-Jan-10 3:54 
AnswerRe: Adding a browse button internal to an Edit Control Pin
«_Superman_»11-Jan-10 20:22
professional«_Superman_»11-Jan-10 20:22 
QuestionPlaying a MIDI note: is there an alternative to mmsystem.h/winmm.dll? Pin
AnatolyGorbunov11-Jan-10 3:50
AnatolyGorbunov11-Jan-10 3:50 

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.