basic CLR

  • Thread starter Thread starter Rick
  • Start date Start date
R

Rick

Hi guys!!

im triying to open a new window using this

myform^ formX = gcnew myform();
formX->show();

but compiler says Error 2 error C2065: 'myform' : undeclared identifier
myform is a windows form i added after create the project, im using VS2005
vc++.net
how can i fix it?? or how can i instance myform to open a new window ??
i put at the begining of code #include"myform" but i doesn't works =(

Thanks!!!
 
sorry guys, i've solved it changing this lines

#pragma once
#include "frmMain.h"

with

#include "frmMain.h"
#pragma once
 
Back
Top