To compile DG2SAMP.C using Microsoft Visual C++ Compiler you need to issue the following command while in the same directory as DG2SAMP.C:
cl /c DG2SAMP.C