Lecture 13

This document is an introduction to building and using DLLs with Visual Studio. It is 100% applicable to pre-2013 versions of Visual Studio. Using 2013 Visual Studio requires that you use the "precompiled header", named 'stdafx.h'. See the example below.

Example of a .cpp file that can be compiled into a DLL, using this module definition file.

And this is an example of a .cpp file that calls the DLL built using the above code.

Finally, this is an example of an excel spreadsheet that attempts (but fails) to call the DLL built above.