当前位置: 代码迷 >> 综合 >> namespace “System“ has no member “Drawing“ error LNK1561: entry point must be defined
  详细解决方案

namespace “System“ has no member “Drawing“ error LNK1561: entry point must be defined

热度:38   发布时间:2024-02-28 01:59:14.0

出現這種錯誤時,請在MyForm.cpp內加入

#include "MyForm.h"
using namespace Test_UI(your namespace name);
[STAThreadAttribute]
int main(void)
{
    Application::EnableVisualStyles();Application::SetCompatibleTextRenderingDefault(false);//Application::// 建立主視窗並執行Application::Run(gcnew MyForm());return 0;}
  相关解决方案