iZeusify
iZeusify

Reputation: 140

How to set a pointers memory address?

I am trying to Write process memory to change values in a game. I think I found the pointer that points to the "health" value. I believe that 0x17F10D12520 is the pointer to the memory address but when I try to

    DWORD *point;
    point = 0x17F10D12520;

It throws

a value of type long long" cannot be assigned to an entity of type
"DWORD *"

It also throws

 Error  C2440   '=': cannot convert from '__int64' to 'DWORD64 *'   

Upvotes: 1

Views: 631

Answers (1)

hgminh
hgminh

Reputation: 1268

Try to cast it to pointer.

point = (DWORD *) 0x17F10D12520;

Upvotes: 4

Related Questions