[C++] Convention

Hey, i like to convent this code into BYTE[].

1
2
//Patch is a funktion.
DWORD JMPAdr = 0xE9 + (DWORD)Patch;

Thanks!
Last edited on
Well, good luck!
Nice answer? Cant you help me?
Can you be more specific about what you are trying to do?

It's a little unclear what you're asking.
That's just it. There isn't a question to answer. I would help you if there was.
uhm.. ?? is this what you mean?

1
2
3
4
5
6
7
8
int main()
{
    DWORD JMPAdr = 0xE9 + (DWORD)Patch;
    BYTE* b = (BYTE*)&JMPAdr;
    cout << b[0] << endl;
    cout << b[1] << endl;
    return 0;
}
yes, thanks all! Sry, next time iam making it more clear (:
Don't forget that a DWORD has four BYTEs, not two. Also, mind that endianness affects the result you'll get.
@m4ster r0shi
I assumed he knew that.. BTW where have you been?
blackcoder41 wrote:
I assumed he knew that..

Yes, ok, I was talking to him, not to you.

blackcoder41 wrote:
where have you been?

What do you mean? I have always been here :P
What do you mean? I have always been here :P
lol, I guess I'm the one who left for a while..
Topic archived. No new replies allowed.