【VC开源代码栏目提醒】:网学会员在VC开源代码频道为大家收集整理了WForm1.cpp提供大家参考,希望对大家有所帮助!
// 这是使用应用程序向导生成的 VC++
// 应用
程序项目的主项目文件。
#include "stdafx.h"
#using <mscorlib.dll>
#using <System.dll>
#using <System.Windows.Forms.dll>
#using <system.drawing.dll>
using namespace System;
using namespace System::Windows::Forms;
using namespace System::Drawing;
using namespace System::Collections;
__gc class WForm1:public Form
{
public:
WForm1()
{
Text = S"第一个托管 Windows Forms 应用程序";
Size = System::Drawing::Size(400,300);
}
};
//This is the application entry point
void __stdcall WinMain(void)
{
Application::Run(new WForm1());
}