sample01 とりあえずFormを開く(クローズはタスクマネージャ)

ref

$ make mmm
cat sample01.cpp
// sample01.cpp
// kill using task manager
//
#using <mscorlib.dll>
#using <System.dll>
#using <System.Drawing.dll>
#using <System.Windows.Forms.dll>

using namespace System;
using namespace System::ComponentModel;
using namespace System::Drawing;
using namespace System::Windows::Forms;

//we derive a class from the Form class
//notice how we don't need any header files
ref class MyForm : public Form
{
};

int __stdcall WinMain()
{
    //this will start a message loop for our form
    Application::Run(gcnew MyForm());
    return 0;
}

cat makefile
TARGET=sample01

all: $(TARGET).exe

PHONY=all test mmm clean
.SUFFIXES: .obj
OBJS=$(TARGET).obj

$(TARGET).obj: $(TARGET).cpp

$(TARGET).exe: $(OBJS)
        link $(OBJS)

.cpp.obj:
        cl -c -clr $<

test:
        ./$(TARGET).exe &

clean:
        -rm $(TARGET).exe *.obj *~

mmm:
        cat $(TARGET).cpp
        @echo
        cat makefile

html:
        cat /dev/clipboard | code2html.exe | unix2dos