如何在 Visual Studio 2008 中编辑值?

发布于 2024-08-23 13:11:56 字数 130 浏览 9 评论 0原文

我正在制作一个 Visual Basic 2008 应用程序,并且希望能够更改特定内存地址处的值。例如,我想将内存地址0xB7CE50处的值更改为100000。有什么简单的方法可以做到这一点吗?

I am making a Visual Basic 2008 application, and want to be able to change the value at a particular memory address. For example, I want to change the value at Memory Address 0xB7CE50 to 100000. Is there any easy way to do this?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

夏雨凉 2024-08-30 13:11:56

我相信 Cody Beer 正在运行一个游戏,并正在寻找一个程序,例如 HxD 或类似的程序,这将允许他编辑主内存,以便他可以将游戏中的金钱数量更改为最大金额。 VS 是错误的工具。

I believe Cody Beer is running a game and looking for a program such as HxD or something similar which will allow him to edit the main memory so he can change the amount of money he has in-game to the maximum amount. VS is the wrong tool for this.

落叶缤纷 2024-08-30 13:11:56

您通常只需使用调试器,并将要更改的变量放置在“监视”窗口中,然后只需键入新值。


看来您希望 .NET 程序能够修改另一个程序的特定内存地址。

据我所知,在 .NET 中没有办法做到这一点,而且在 .NET 之外也几乎没有办法做到这一点。正如我所建议的,您可以使用调试器来完成此操作。为了从程序中做到这一点,您的程序必须是一个调试器!

好消息是这是可能的。请参阅 Visual Studio 调试器扩展性。不要因为它似乎需要 Visual Studio 而推迟。您可能不知道的是,可以基于 Visual Studio 创建一个外观和行为完全像独立可执行文件的程序。

我相信还有一些方法可以通过使用 Windows SDK 中描述的 API 来“成为调试器”,但我不知道它们的文档在哪里。

You typically just use the debugger, and place the variable you're looking to change in the Watch window, then just type in the new value.


It appears that you want a way for a .NET program to modify a particular memory address of another program.

There is no way to do this with .NET as far as I know, and there's only barely a way to do this outside of .NET. As I suggested, you could do this with a debugger. In order to do it from a program, your program will have to be a debugger!

The good news is that this is possible. See Visual Studio Debugger Extensibility. Do not be put off by the fact that it seems to require Visual Studio. What you may not know is that it's possible to create a program, based on Visual Studio, that looks and behaves entirely like a stand-alone executable.

I believe there are also ways to "be a debugger" by using APIs described in the Windows SDK, but I don't know where the documentation for them is.

笑看君怀她人 2024-08-30 13:11:56

GUI操作很简单。

  1. 从 Debug -> 打开四个内存视图之一窗口 ->内存 1-4
  2. 在地址字段中键入正确的地址。
  3. 更改正确地址处的值。

谢谢。

Its easy by GUI operation.

  1. open the one of four Memory Views from Debug -> Windows -> Memory 1-4
  2. keyin the correct address on address filed.
  3. change the value at the right address.

Thanks.

堇年纸鸢 2024-08-30 13:11:56

您将需要一个内存编辑器软件,例如 TSearch 等......
不确定 VS 是否可以实现。

You will need a memory editor software like TSearch etc...
not sure if that is possible with VS.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文