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);
}
}
讲师正在使用 Code Blocks 并说我们需要在 Code Blocks 的控制台标志菜单中添加一个控制台标志“-mwindows”,但我没有成功找到 "console flag"也不是 Visual Studio.
中的替代选项
我一直在深入挖掘,找到了答案 here。
由于添加标志的目的是启用阻止控制台出现的选项,因此此解决方案就足够了。
我刚刚开始学习创建键盘记录器的课程,我遇到的第一个功能是让控制台消失:
#include <iostream>
#include <windows.h>
using namespace std;
int main() {
MSG Msg;
while (GetMessage(&Msg, NULL, 0, 0)) {
TranslateMessage(&Msg);
DispatchMessage(&Msg);
}
}
讲师正在使用 Code Blocks 并说我们需要在 Code Blocks 的控制台标志菜单中添加一个控制台标志“-mwindows”,但我没有成功找到 "console flag"也不是 Visual Studio.
中的替代选项我一直在深入挖掘,找到了答案 here。
由于添加标志的目的是启用阻止控制台出现的选项,因此此解决方案就足够了。