ingame msgbox problems.....

Posts 16–17 of 17 · Page 2 of 2
Quote Originally Posted by Ende! View Post
Code:
enum eOffsets
{
   OFFS_IngameMsgBox = 0xA4180
} // ==> eOffsets

void IngameMsgBox(DWORD dwCShellBase, const char *szMessage)
{
   typedef void(__cdecl *pGameMsgBox_t)(DWORD, DWORD, DWORD, const char*);
   pGameMsgBox_t pGameMsgBox = (pGameMsgBox_t)(dwCShellBase + OFFS_IngameMsgBox);
   pGameMsgBox(0x1D, 0x71, 0, szMessage);
} // ==> IngameMsgBox
Why not using a function pointer instead of inline ASM?
they all got it from me
i didnt want to post the CShell class i use so i made it in inline asm and released it.
Ah, ok. Copy&Paste magic seems to be kind of common over here. :|
Posts 16–17 of 17 · Page 2 of 2

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us