There is a file called "DGDecode.dll" in the folder with dgmpgdec (DGIndex).
Either add loadplugin("...\dgdecode.dll") to your script or just copy it to your ...\avisynth\plugins folder (which is probably better).
(... of course means to use the full pathname to where ever you have the file.)