I am using Windows 7 and my D-link DWA-140 always worked fine. Then I started to get Code 10. This device cannot start. This really drove me crazy trying to find out what happened. In my case I had just installed a Logitech QuickCam for Notebook Pro web cam. When I unplugged my Logitech web cam the Dlink DWA-140 drivers installed correctly and I no longer got the Code 10. error.
When I plugged my web cam back in, the Dlink DWA-140 would disconnect and there would be the yellow exclamation point when looking at it using the device manager.
This is Windows 7 and I cannot figure out why there should be any conflicts like this.
In case anyone else is receiving an error Code 10, unplug your USB devices one at a time, and every time you do, delete the DWA-140 from the Device Manager and then choose Scan For Hardware Changes and see if installs correctly.
Hope this helps someone else.
P.S. If I get this error on Windows 7, the same thing could happen with Vista or XP.