gpt4 book ai didi

c++ - 如何设置指针内存地址?

转载 作者:搜寻专家 更新时间:2023-10-31 00:27:19 25 4
gpt4 key购买 nike

我正在尝试编写进程内存来更改游戏中的值。我想我找到了指向“健康”值的指针。我相信 0x17F10D12520 是指向内存地址的指针,但是当我尝试

    DWORD *point;
point = 0x17F10D12520;

它抛出

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

它也会抛出

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

最佳答案

尝试将其转换为指针。

point = (DWORD *) 0x17F10D12520;

关于c++ - 如何设置指针内存地址?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49524991/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com