Message window
Hi, guys!
This code shows the message window after the game start (of course it's not mine):
It's works very great for CF NA, but i want do this for another loc. The problem is when i use this function the game crashes. I think the problem is in this value - 0x7D780. How i can find an actual value? Maybe string or something. I also try constant search in Olly and found nothing.
This code shows the message window after the game start (of course it's not mine):
Code:
void ShowMessage(char* string, DWORD CShell)
{
DWORD MsgBoxFunc = CShell + 0x7D780;
__asm
{
push string;
push 0;
push 0x70;
push 0x1C;
call MsgBoxFunc;
add esp, 16;
}
}

idk way