C++ window form tital and UI not displaying

Tris Yang 1 Reputation point
2021-07-02T01:42:06+00:00

I have create a window form in visual studio 2013 community 2013 and the following code in the MyForm.h:

include "MyForm.h"

using namespace System;
using namespace System::Windows::Forms;
[STAThreadAttribute]

void main(array<String^>^ args)
{
Application::EnableVisualStyles();
Application::SetCompatibleTextRenderingDefault(false);
Project2::Form frm;
Application::Run(%frm);
}

but when I run it, it shows:

111161-image-2021-07-02-080915.png

I've also named entry point and the subsystem in project and added some elements to the form, but it still doesn't show anything :(

C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,537 questions
{count} votes