When the versions of DAQ drivers are significantly different, functions can often change slightly which can affect code execution. The first thing that I recommend doing is looking through the code itself and checking all of the functions, particularly the ones that generate errors. A good resource to compare these functions is the Traditional NI-DAQ (Legacy) C Function Reference Help. This is located in Start >> All Programs >> National Instruments >> NI-DAQ. I also found a couple of knowledgebases that concern the error -99. These appear to be for older versions of DAQ, but they are worth looking at.
I hope this helps.