hints/good book needed: OOP design 3-layer managed C++ app
-
Welcome everyone, (I am writing in managed C++ using as a template an app in C#, which I don't know well, have slight plain C++ background, a little bit object oriented.) In my OOP project in C++ .net: I use a concept from a C# project that has a mainClass.cs containing some member clases and the main entry point, mainForm.cs and settingsForm.cs. I suppose that in C++ I should also have the _tmain() inside mainClass definition. But here I get confused with the namespaces and #include's. 1) Having already my "console" (at least not WinForm) mainClass definition in one project, do I put the mainForm class in a separate project, call it gui, in the same solution? or just keep it in the same project? 2) Do I make one namespace for both "layers" (gui and main program)? 3) Do I need to #include the other .h file in both form.cpp and main.cpp? (sort of "cross include"?) I realize these are probably trivial basics, but I'll truly appreciate any hints or maybe book recommendations, which could help me go further with the project. Greetings and thanks in advance, njupas