|
-
December 23rd, 2006, 12:47 PM
#1
I can not call the forms declared in Form1.h
Hi friends, i'm a new programmer. During an application, i want to call a form by clicking somewhere. For example, when i click Help/About Menu, i want the About.h form to start.
To do this, i declare it like that;
#include "About.h"
.
.
.
private: About^ aboutBox;
.
.
.
.
.
aboutBox = gcnew About;
--------------------------------
But there are many errors when i debug,
such as;
error C3845: 'MyMessenger::Form1::aboutBox': only static data members can be initialized inside a ref class or value type
please help me about this problem. Do you suggest any other methods?
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
|