(This is a working note.)
Suppose that we have a YourProject.cpp and its head file YourProject.h, and we want to export it as YourProject.dll and YourProject.lib in VS2008.
Also, suppose that we have some code to define the exporting flag in YourProject.h:
The steps were as the follows:
Step 1: In the existing solution, add a project for the source and head file (i.e., the YourProject.cpp and YourProject.h)
Step 2: Make sure that you set the project's Configuration Type to ``dll'':
Step 3: Add ``DLL_EXPORTS'' in the Preprocessor Definitions: