Translating C++ project from .exe to .dll?
<p>I have develped my GUI Application in Qt though Qt Creator IDE &amp; MinGW compiler.
I plan to Open source it under the terms of GNU-LGPL.
Now since I had developed all the source code with my GUI Application in my mind, I am having difficulty in modifying the project so as to build a .dll which others can use in their applications. Here are some of my doubts:</p>

<ol>
<li><p>Should I maintain a different sets of source files for .exe project &amp; another for .dll project, considering that I will be maintaining my project on GitHub.</p></li>
<li><p>Should I delete all the GUI related code from the .dll project? Or it would be fine to just put bool flag's everywhere GUI is created/modified?</p></li>
<li><p>Should I delete those functions which were only used in .exe project &amp; will never be called in .dll project? Or should I let them be as it is?</p></li>
</ol>

<p>This is my first time at Application development as well as Open Source development. Since I have developed it myself, I dont have proper guidance.
Thank You.</p>
