Constructing the DLL
File/New/Project
New Project
=========
On the left, Select Visual C++ Projects
On the right, Select Win32 Console Project
Type in the project name etc
Click OK
Win32 Application Wizard
==================
click Application Settings
Win32 Application Wizard
==================
Select DLL
Select Export Symbols
Click Finish
What you'll get is an example header and source which exports symbols for
o a class
o a variable
o a function.
And that's it. The rest of the stuff like precompiled headers and code generation types you probably already know.
Not sure if you're having problems with the design of the behavioural bits of your DLL