可执行 VC++ 中的奇怪字符串

Strange strings in executable VC++

本文关键字:字符串 VC++ 可执行      更新时间:2023-10-16

我创建了简单的C++ Hello world程序,然后我使用MSVC++编译它,然后我使用Notepad++查看可执行文件(我知道这不是使用它打开二进制文件的最佳程序,但我想知道,是否有任何人类可读的字符串)。我发现那里有像A cast to a smaller data type has caused a loss of data. If this was intentional, you should mask the source of the cast with the appropriate bitmask.这样的字符串

The value of ESP was not properly saved across a function call.  This is usually a result of calling a function declared with one calling convention with a function pointer declared with a different calling convention.

这些绳子是什么,它们来自哪里,我怎样才能摆脱它们?

所有常量字符串都可以通过使用文本编辑器进行人类读取。尝试在您的程序中查找"hello world",它会弹出。(当我们试图弄清楚混淆我们的 OpenCL 代码是否值得时,第一次遇到这个问题......其实不然)。

这些字符串是窗口在每个可执行文件之上抛出的错误字符串。我不知道如何摆脱它们。