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. Front end to C++

Front end to C++

Scheduled Pinned Locked Moved IT & Infrastructure
c++comquestiondiscussion
3 Posts 3 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.
  • K Offline
    K Offline
    K Shaffer
    wrote on last edited by
    #1

    I need to write a c/c++ program that will have multiple front ends, GUI, Serial, and maybe others. I want to seperate the interface from the main program as much as possible, so that interfaces can be changed easily. In this way, I could also separate some platform dependent features from the not-so platform dependent code. How is this usually done? Some thoughts that I had: 1) write a console application for the main application, and call the program from the interface program and use stdin/stdout? 2) Use sockets? 3) Make the main application into a library and import it into the front end code? 4) Just modulize main application with a central object/class and include the class into the GUI. How are most front ends done, especially if you have a c++ backend and want to build Visual Basic front end? Thanks, Kevin Shaffer kshaff03@msn.com

    J E 2 Replies Last reply
    0
    • K K Shaffer

      I need to write a c/c++ program that will have multiple front ends, GUI, Serial, and maybe others. I want to seperate the interface from the main program as much as possible, so that interfaces can be changed easily. In this way, I could also separate some platform dependent features from the not-so platform dependent code. How is this usually done? Some thoughts that I had: 1) write a console application for the main application, and call the program from the interface program and use stdin/stdout? 2) Use sockets? 3) Make the main application into a library and import it into the front end code? 4) Just modulize main application with a central object/class and include the class into the GUI. How are most front ends done, especially if you have a c++ backend and want to build Visual Basic front end? Thanks, Kevin Shaffer kshaff03@msn.com

      J Offline
      J Offline
      Johan Russouw
      wrote on last edited by
      #2

      Write a DLL for Windows in such a way that it can be compiled in Linux as a SO. The DLL can check the interface that is used. Johan

      1 Reply Last reply
      0
      • K K Shaffer

        I need to write a c/c++ program that will have multiple front ends, GUI, Serial, and maybe others. I want to seperate the interface from the main program as much as possible, so that interfaces can be changed easily. In this way, I could also separate some platform dependent features from the not-so platform dependent code. How is this usually done? Some thoughts that I had: 1) write a console application for the main application, and call the program from the interface program and use stdin/stdout? 2) Use sockets? 3) Make the main application into a library and import it into the front end code? 4) Just modulize main application with a central object/class and include the class into the GUI. How are most front ends done, especially if you have a c++ backend and want to build Visual Basic front end? Thanks, Kevin Shaffer kshaff03@msn.com

        E Offline
        E Offline
        eidan
        wrote on last edited by
        #3

        Hi Kevin. I think most serious applications use, from long time ago, the MVC framework. MVC stands for Model-View-Controller, the idea comes from Smalltalk developement evironment. I cannot explain the issues since is a very well documented topic, surely there will be C++ implementations, at least I've seen the Gamma implementation (in the book Design Patterns) which you can read in the Observer pattern, since the framework is heavily based on it. regards eidan PS: Dolphin Smalltalk has the MVP (Model-View-Presenter) variant, which posses also interesting modifications.

        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