hi! I am a beginner in high-level C++ as I have only ever done low-level C++ and C and application scripting like in unity and unreal engine.
I have decided to create my game in just C++ with maybe a little bit of C code in there.
my question is this. is there any way to use WinForms with just code as you can in C#?
I have looked on the internet for many hours for this problem, and I would hate to come up short.
in C# a simple windows form is
using System.Windows.Forms;
namespace baseform
{
class Program
{
static void Main(string[] args)
{
Form baseform = new Form();
Button mybutton = new Button()
{
Text = "Quit",
Location = new System.Drawing.Point(10, 10)
};
mybutton.Click += (o, s) =>
{
MessageBox.Show("Quitting Application");
Application.Exit();
};
baseform.Controls.Add(mybutton);
baseform.ShowDialog();
while (baseform.Created)
{
}
}
}
}
how would I do this is C++?