I am starting Microsoft Visual Studio 2010. I decided to start a new project on the welcome page. Of course, my preferred language is Visual C ++, and I suggest starting a Windows Forms application. I refuse a name such as a calculator for this. I do not touch other parameters in this dialog box. A project is created, and a new Form1.h project is automatically added to the project, and Form1.resX is also added. Since "Form1" is useless to me, I would like to rename it to something more than VB6-style, for example, "frmMain.h". So I directly click on the form and just select "Rename." After accepting my new name, the necessary changes seem to be happening. First impression. But now, when I try to build this project, it gives BUILD FAILURE. When I look into my files .. Form1 is still mentioned.
So my question is: how do you actually / OFFICIALLY rename forms?
I read a lot about this, and basically the answer is to delete the form and add a new name with the correct name. I also heard that VS asks to rename all links to it, but it did not seem to me. Some other people say that you should use the quick replace function and rename all references to this class and its file. This is not a good way for me .. Or is it really a standard procedure?
I have experience in C ++ programming and I know about classes and polymorphism and so on. But this is one of the simplest things that annoys me!
source share