For blairon...
how do you share a reusable code portion with a lot of different programs?
The original thread on this was locked... but I thought this deserved an answer. I hope this is ok with our esteemed moderators...
Attached is your example include project... fixed and working with proper debugging. This will show you the basic form of sharing code *within* a project... by using header files that can be included in multiple source files...
For the larger, more nebulous problem of shaing code between projects you have two choices... Write libraries or write DLLs.... I personally prefer to write libraries as they are linked directly into your program rather than relying upon an external file, which may become lost or corrupted. Others will give you the opposite argument that DLLs are better because you can update the DLL without re-writing or re-installing the whole program... so it becomes situational, where you use your best judgement at the time.
If you want to see how libraries are built take a look at...
http://forum.pellesc.de/index.php?topic=3685.0 and download the zip file.