VS2010应用程序入门级问题,还请高手指点一二。。。
赵利军 2011-07-12 09:00:18 VS2010中开发基于Form应用程序,因为自己写了一个类,直接写在form1.h里面了,所以就出现了下面的错误:
The class Form1 can be designed, but is not the first class in the file. Visual Studio requires that designers use the first class in the file. Move the class code so that it is the first class in the file and try loading the designer again.
我把这个类写在form1.h里的直接后果就是无法看到界面设计视图了,每次都要把那个类的定义注释掉才能设计界面,运行没什么问题,请问我自己定义的类写在这里面合理不合理?我个人觉得不合理,但是我应该在哪里定义,定义了以后怎么样来使用它。