Lecture 10


The .cpp source and .def file used to build the DLL we saw in class (whose name will be 4500.dll). Here is the source code used to test the DLL from another C++ program. General background on DLLs, here.
This document explains how to call a DLL from VBA. To use the above DLL with VBA, you much change the .cpp file so as to use the "_stdcall" that removes name-mangling, as in here. An example of a spreadsheet that uses the resulting DLL.