-
April 9th, 2011, 05:16 PM
#1
Show form in C++?
Hey, I'm Tyler. I'm new to CodeGuru. I've been programming in Visual Basic .NET for about a year and have decided to start exploring C++. I download VC++ and am trying to use it, but one thing I can't seem to do is show a form. I know this will do it:
Form2 myForm = gcnew Form2;
myForm->Show();
but it makes multiple instances of the same form. In VB.NET, Form2.Show() makes a single instance of the form and only one Form2 is allowed to be open. If you want to make multiple forms you'd do:
Dim myForm as New Form2
myForm.Show()
How do I make a single instance of Form2? I used a converter and it told me
Form2::Show();
I tried that and I got an error saying something about an illegal call of a non-static member function. How do I do it??
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|