Exactly what errors do you get and on what line?
Since we don't have the device or dlls we can't run it ourselves.