【发布时间】:2014-11-26 12:21:22
【问题描述】:
Visual C++ Opening a second form
我试过了,但我有问题
Form1.h
panel^ form2 = gcnew panel;
form2->ShowDialog();
panel.h
#include "Form1.h"
Form1.cpp 和 panel.cpp
#include "Form1.h"
#include "panel.h"
错误
error C2061: syntax error : identifier 'panel'
error C2065: 'form2' : undeclared identifier
error C2065: 'form2' : undeclared identifier
error C2065: 'panel' : undeclared identifier
error C2227: left of '->ShowDialog' must point to class/struct/union/generic type
【问题讨论】:
标签: winforms visual-studio c++-cli