CowNowB / Aimstar

Free and open source popular cheat, written in C++ (New repo)
MIT License
46 stars 6 forks source link

vsprintf error #10

Closed Guralol closed 1 month ago

Guralol commented 1 month ago

I'm a newbie and when I run it with Debug x64 it gives the following error. QQ20240818-131319 I've tried the workaround on the webbut it didn't work

MehPropy commented 1 month ago

You have to build it as Ring0 or Ring3, not Debug nor Release. The error is saying that vsprintf is unsafe, so before changing anything in the code, try to build it as Ring3 or Ring0 and see if it will work (it should). If that somehow dosent work, replace all vsprintf instances with vsprintf_s. Cheers.

CowNowB commented 1 month ago

don't build as Debug

Guralol commented 1 month ago

您必须将其构建为 Ring0 或 Ring3,而不是 Debug 或 Release。错误是说 vsprintf 不安全,因此在更改代码中的任何内容之前,请尝试将其构建为 Ring3 或 Ring0,看看它是否可以工作(它应该)。如果这在某种程度上不起作用,请用 vsprintf_s. Cheers 替换所有 vsprintf 实例。 好,我使用了R0和R3进行构建,虽然已构建成功,但程序不会正常运行,如下图 QQ20240818-213111 R0和R0都是相同的结果,请问有什么解决办法吗?

Guralol commented 1 month ago

不要构建为 Debug

Though it build successfully,it can't run normally

Guralol commented 1 month ago

您必须将其构建为 Ring0 或 Ring3,而不是 Debug 或 Release。错误是说 vsprintf 不安全,因此在更改代码中的任何内容之前,请尝试将其构建为 Ring3 或 Ring0,看看它是否可以工作(它应该)。如果这在某种程度上不起作用,请用 vsprintf_s. Cheers 替换所有 vsprintf 实例。

我现在已经完全的成功了,但必须使用Ctrl+F5运行它,感谢你的帮助