L
Lynn Morrison
Hi, I created a Form and need a pointer to it so that I can reuse it again
and again instead of recreating it all the time.. something like this...
Form1.h
// .... snipped for brevity
#include "Form2.h"
// class def ... snip
Form2 *Preferences;
Preferences = new Form2();
Preferences->Parent = this;
Preferences->Show();
// ERROR
There is indeed a Form2 and it is found, no errors in the including of it.
Form2 is a .NET created form using the wizard. Nothing is done to it yet, no
controls etc... but I cannot reference Form2* Preferences nor create a Form2
with that pointer.
I get an unrecognized error... not sure what this is...
This should be programming 101, but for some strange reason.
and again instead of recreating it all the time.. something like this...
Form1.h
// .... snipped for brevity
#include "Form2.h"
// class def ... snip
Form2 *Preferences;
Preferences = new Form2();
Preferences->Parent = this;
Preferences->Show();
// ERROR
There is indeed a Form2 and it is found, no errors in the including of it.
Form2 is a .NET created form using the wizard. Nothing is done to it yet, no
controls etc... but I cannot reference Form2* Preferences nor create a Form2
with that pointer.
I get an unrecognized error... not sure what this is...
This should be programming 101, but for some strange reason.