Visual Studio 中是否有来自代码块的编译器标志的类似物?

Is there an analog to Compiler Flags from Code Blocks in Visual Studio?

本文关键字:编译器 标志 类似物 代码 Studio 是否 Visual      更新时间:2023-10-16

我刚刚开始了创建键盘记录器的课程,我遇到的第一个功能是使控制台消失:

#include <iostream>
#include <windows.h>
using namespace std;
int main() {
MSG Msg;
while (GetMessage(&Msg, NULL, 0, 0)) {
TranslateMessage(&Msg);
DispatchMessage(&Msg);
}
}

讲师正在使用代码块,并说我们需要在代码块中的控制台标志菜单中添加一个控制台标志"-mwindows",但我没有成功找到"控制台标志",也没有在Visual Studio中找到替代选项。

我一直在挖掘更多,并在这里找到了答案。

由于添加标志的目的是启用停止显示控制台的选项,因此此解决方案就足够了。