Hi,
There are a couple of things that you need to take into account:
+Make sure that the CVI Run-Time engine is intalled in the computer where you want to run the DLL. You can create an installer for the dll that would install the run-time engine.
+Create a debug DLL, attach the exe that runs the dll as an external process and then you can debug line by line the code for the DLL in CVI. Here is more info this: http://digital.ni.com/public.nsf/websearch/6901DBC7E7A83668862565FA00735CEC?OpenDocument
+Check the functions that you are using to acccess the USB device. CVi can't compile kernel level code. However CVI can call the Window SDK to access the kernel.
I hope this information helps you to get started.
Regards,
Juan Carlos
N.I.