Why an Undefined Identifier ?

Using CppCLR_Winforms App (extension by Kaiser ) on Win10

{ // `Trying this code in the frmMain btnAddAccount_Click event:
// I have in this project a frmAddAccount.h file
// And have modified it in the Designer
// This #include "frmNewAccount.h" is present in the frmMain.h file
// frmAddAccount^ f1 = gcnew frmAddAccount(); // Fails but why ?
// 7 Errors are generated. and identifier frmAddAccount is undefined seems
// most relevant
So how and where should frmAddAccount be defined?
I thought the frmAddAccount^ f1 ... statement should do it !

TIA
srfpala
frmNewAccount.h is obviously not frmAddAccount.h. So #include "frmAddAccount.h" instead where it is needed.
Registered users can post here. Sign in or register to post.