
Neva used C# but am sure it has libraries or an API to access USB On Thu, Aug 20, 2009 at 11:42 PM, Bernard Owuor <b_owuor@yahoo.com> wrote:
Basically, it is possible using libusb-win32. Look at:
http://stackoverflow.com/questions/994600/writing-drivers-in-c (do not listen to the naysayers) http://libusb-win32.sourceforge.net/
You can pinvoke in C# to call functions in libusb as described here: http://www.ddj.com/windows/184416423
However, it is still helpful to maintain some knowledge of C if you want to do such low-level stuff. It aids in understanding APIs and pre-existing code. Fortunately, with some knowledge of C#, C will be a breeze once you get over "pointers".
------------------------------ *From:* aki <aki275@googlemail.com> *To:* Skunkworks forum <skunkworks@lists.my.co.ke> *Sent:* Thursday, August 20, 2009 3:33:38 PM *Subject:* [Skunkworks] Programming.....the bumps and diversions, just like many tech things
Well I discovered today something new, that most upper languages will not talk directly to hardware. So am now having to stop c# for a while, take a detour into something allows direct talking to computer hardware. No matter how complete they try to make it, something always lacks and big time. Eg, Since I'm trying to focus on c# and comms layers, this thing requires much more than classes built into the c# language.
Any of you programmers come accross this or am I just talking a difficult route? Eg if you are writing an app to query a usb device?
Rgds.
__________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
_______________________________________________ Skunkworks mailing list Skunkworks@lists.my.co.ke http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks Other services @ http://my.co.ke Other lists ------------- Announce: http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks-announce Science: http://lists.my.co.ke/cgi-bin/mailman/listinfo/science kazi: http://lists.my.co.ke/cgi-bin/mailman/admin/kazi/general
-- www.dealcent.com - Your electronics shop www.golavish.com - The travel and leisure www.raccuddasys.com - code Development issues