I have a program that has a lot of .cpp, .h and .dfm files. I have just recently started learning about Visual C++ with MFC. The program doesn’t have any .ncb or solution object files, because of which I am unable to understand as to how to start understanding the program. There are lots and lots of files and its quite confusing to understand the flow.
There are two folders as well. One with .ac files and the other with text files. Could anyone suggest me an easier way to start off? Eventually, after looking at this program’s code, I have to create my own program which is kind of similar to this but with added functionality.
Kindly help please.
Cheers.
Some tips:
Use the Find in Files button to find the characters
main. If you find a main(), an _tmain(), or a WinMain this will tell you a lot about what you have. If there’s an exe, run it – that will show you what to look for also.Visual Studio 2010 has an option to create a solution from source files, so that may also help you.
If you think it’s an MFC app, look for the View class, the Document class and so on.
In Visual Studio 2010 Navigate To (Ctrl ,) is super helpful – using mixed case words in your search term will do a very clever search. So if you run it and see a button labelled Open Policy, then you search with Navigate To for OpenPolicy, it will find PolicyOpen and OpenNewPolicy and plenty more that Find in Files would not.
Good luck!