I have a problem with a redefinition when open a form.
From Form15 I open Form13 wich works great:
#include "Form13.h"
Form13 ^form13 = gcnew Form13;
form13->Show();
Now when I add the same code on Form21 I will have the compilererror below:
Why does this happen ?
The problem will also occur if I Only #include "Form13.h" on Form21, so the problem
starts here ?
#include "Form13.h"
Form13 ^form13 = gcnew Form13;
form13->Show();
CompilerErrors:
'Form1::Form13' : 'class' type redefinition
see declaration of 'Form1::Form13'
use of undefined type 'Form1::Form13'
left of '->Show' must point to class/struct/union/generic type