C++ MessageBox, LPCSTR Issue
Code:
#define Address1 (*(short*)( 0x01234567 ) ) MessageBox( NULL, Address1, "Window Caption1", MB_ICONINFORMATION );
Code:
MessageBox.Show("Value of Address1: " + Address1, "Window Caption1")
#define Address1 (*(short*)( 0x01234567 ) ) MessageBox( NULL, Address1, "Window Caption1", MB_ICONINFORMATION );
MessageBox.Show("Value of Address1: " + Address1, "Window Caption1")
DWORD *pDW = (DWORD*)0x030F8CF0; char str[256]=""; sprintf(str, "Val: 0x%x", pDW); // Val: 0x30F8CF0
DWORD *pDW = (DWORD*)0x030F8CF0; char str[256]=""; sprintf(str, "Val: %d", *pDW); // Val: 7