Creating a stand alone application

How to create a instance of the SolidWorks software using the dll files??

SolidworksApi macros