title: Creating and Exporting C++ Singleton Class from DLL
body: <p>I have a small query, How to create and export Singleton class from DLL? that could be share across multiple modules of same application. My intention is to create a centralized custom logging system that would log in same file.</p>
  
  <p>Any example or link will be appreciated. </p>