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

本秂侑毒 提交于 2020-07-03 09:56:12

问题


I have just started a course on the creation of keylogger and the first function I encountered was something to make the console disappear:

#include <iostream>
#include <windows.h>

using namespace std;

int main() {
    MSG Msg;

    while (GetMessage(&Msg, NULL, 0, 0)) {
        TranslateMessage(&Msg);
        DispatchMessage(&Msg);
    }
}

The instructor is using Code Blocks and said that we will need to add a console flag "-mwindows" to the menu of console flags in Code Blocks, but I was not successful in finding neither the "console flag" nor an alternative option in Visual Studio.


回答1:


I have been digging around a little more, and found an answer here.

Since the purpose of the addition of the flag was to enable the option to stop the console from appearing, this solution is sufficient.



来源:https://stackoverflow.com/questions/62368356/is-there-an-analog-to-compiler-flags-from-code-blocks-in-visual-studio

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!