Put the definition of the class in a header file and include it in whatever you want to share the class with. If you want an instance of the class (an object), you can put that in a DLL and share it.