Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Other Discussions
  3. IT & Infrastructure
  4. hints/good book needed: OOP design 3-layer managed C++ app

hints/good book needed: OOP design 3-layer managed C++ app

Scheduled Pinned Locked Moved IT & Infrastructure
csharpc++designoophelp
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    n j
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups