C++ 'WinMain': 函数不能重载

C++ 'WinMain': function cannot be overloaded

我正在尝试使用控制台启动 GUI 应用程序进行调试,但它总是崩溃:

    #include "main_form.h"
#include <iostream>
#include <stdio.h>
#include <Windows.h>



using namespace System;
using namespace System::Windows::Forms;


[STAThread]
void WinMain()
{

    Application::EnableVisualStyles();
    Application::SetCompatibleTextRenderingDefault(false);

    AgeOfExpress::main_form form;

}

错误:'WinMain':函数无法重载
我是 c++ 的新手,有人可以帮助我吗? P.S。 : 我正在使用 visual studio

想通了。您需要编辑子系统 :)