title: How to run a C++ program inside another C++ program?
body: <p>I will sketch the scenario I would like to get working below. </p>
  
  <p>I have one main application.
  That application, based on user interactions, can load other applications inside a secure environment/shell. This means these child applications cannot interact with the OS anymore, nor with each other. </p>
  
  <p>The parent program can at any time call functions of these child programs. 
  The child program can at any time call functions of these parent programs. </p>
  
  <p>Does anyone know how to implement this in C++? Preferably both parent and child should be written in C++.</p>
  
  <p>The performance of loading the child applications inside the parent application doesn't matter. The only thing that matters is the performance of the communication between child and parent when calling functions of each other. </p>