I can't see a problem in your C code, either. And I never got that error message in LabVIEW 7 when dealing with DLLs (but I never used one created with VS2005...).
Maybe, you'd like to post the DLL for further investigation?
Another very good tool to check DLLs is
here.
Regards, Guenter