我创建了简单的C++ Hello世界程序,然后我编译它使用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.
奇怪的字符串在执行VC++
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.
什么是那些字符串,他们从那里来,我如何能够摆脱他们?
您是在调试模式还是在释放模式中?我认为DEBUG会在可执行文件中保存大量数据(字符串或其他)。 – Max
我处于调试模式。 –
标准库包含一些常见错误的消息。 –