Visual Studio 中是否有来自代码块的编译器标志的类似物?
Is there an analog to Compiler Flags from Code Blocks in Visual Studio?
我刚刚开始了创建键盘记录器的课程,我遇到的第一个功能是使控制台消失:
#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中找到替代选项。
我一直在挖掘更多,并在这里找到了答案。
由于添加标志的目的是启用停止显示控制台的选项,因此此解决方案就足够了。
相关文章:
- Visual Studio 中是否有来自代码块的编译器标志的类似物?
- 如何将编译器标志限制为仅(我的)本地库?
- 为什么 gcc 编译器标志未知?
- 如何将编译器标志从 clang 传递给 nvcc
- 设置用于调试的 g++ 编译器标志
- 是否有任何编译器标志可以在下面的代码中用于报告有关 UB 的警告?
- std::function, Clang 6.0 & MSVC (10.0017134.12) - 可能的 ABI 错误或必需的编译器标志
- 是否可以使用 GCC 编译具有特定编译器标志的代码文件的一部分?
- CMAKE 如何在 C++ 中将编译器标志附加到末尾
- 如何在 Visual Studio Code 中包含编译器标志
- 是否有编译器标志可以使较新的 gcc 版本像旧版本一样构建
- 使用 noexcept 和编译器标志来关闭异常
- 运行时附加编译器标志
- 在每个平台上使用相同的模拟,具有正确的编译器标志
- 如何在 CMake 中添加"-l" (ell) 编译器标志
- CMake ADD_LIBRARY函数的编译器标志的哪个变量?
- Python 扩展:对 C 部分和 C++ 部分使用不同的编译器标志
- Visual Studio中的C 编译器标志
- EIGEN3 JACOBISVD根据编译器标志的不同奇异值
- 为什么缓冲区超支警告(C4789)仅在编译器标志 /o2中发生