I have two gui applications, lets call them First and Second. I would like to be able to use Second application as a dynamically created form in First, create it on some menu item triggered.
The proble is both source codes have mainwindow.h and MainWindow class.
I experimented with namespaces, typedefs, tried to create static lib from Second and then too use it in First... but I ended with either code not compiling, or creating of First instead of Second MainWindow.
The MainWindow is under source control, changing existing files is not an option.
How do i achieve this?