OK, thank you. I have managed to build it using VC 2005. Now it seems sensible to just make DGAVCIndex buildable under VC 2005 and then incorporate the AVC decoder code directly, so that no external DLL is necessary.
Then add PAFF.
BTW, active SPS/PPS management is something of a nightmare for random access.