No main.cpp should not get included, that is only for an executable. If you do not understand how to create a DLL then take a look at
Walkthrough: Creating and Using a Dynamic Link Library (C++)[
^].
[edit]
Go to the link I gave you above and work through it. You need to understand the differences between what happens at:
- the compile stage: define the class and method names for export, and create the actual code that the DLL provides.
- the link stage: links the objects of the DLL into a loadable library.
You then need to understand how to use the DLL. Your executable will need:
- the header file associated with the DLL containing the exported names. The compiler will use those to create external references in the compiled objects.
- the .LIB file that is used to resolve the external references at link time.
- the DLL itself that the loader will access at execution time.
[/edit]