// CppCLR_WinformsProjekt.cpp: Hauptprojektdatei. /* using namespace System; int main(array ^args) { Console::WriteLine(L"Hello World"); return 0; } */ #include "stdafx.h" #include "Form1.h" using namespace System; using namespace System::Windows::Forms; [STAThread] // int main(array^ args) { // Kann Fehler nach 'using namespace std;' verursachen int main() { Application::EnableVisualStyles(); Application::SetCompatibleTextRenderingDefault(false); Application::Run(gcnew CppCLR_WinformsProjekt::Form1()); // "CppCLR_WinformsProjekt" noch anpassen return 0; }