How to make a library in C or C++ or C# or other language to control usb port

I have visual studio 2010, netbeans 7.2 and eclipse, i want to make a library in C or C++ or C# to control a usb port? i want to controll a motor controller