How do I compile a .cpp source file into a .dll?
You have to compile cpp files into .obj files, then link them to produce a .dll.