To link your Microsoft Visual C++ Compiler program, issue the following command while in the same directory as DG2SAMP.C:
link /dll dgwapi.lib dg2samp.obj