I used to program in C++ in Dos. I recently migrated to C# and purchased a book called, Microsoft Visual C# in 24 hours by James Foxall. The book was Ok, but it left me questionable on how the programming language has changed, and I just could not grasp on some of the topics he covered. Is there a good book out there that covers everything from API’s to *.net programming?
Loading
Jeffrey WannerPosted Aug 2, 2008, 11:41 AM
Hay! Thanks allen.
Looks like I'll have to go back to C++ and fogure out how to do it all over again.
Im just hopeing that visual C++ has the capabilities.
Again thanks for the input.
Jeff
AlanPosted Jul 31, 2008, 11:01 AM
The .NET framework has a SerialPort class but no support for USB programming to my knowledge.
There is an open source .NET library for USB called #usblib which could be used from C#:
http://sharpdevelop.net/OpenSource/SharpUSBLib/default.aspx
However, it must be questionable whether it's worthwhile learning C# to do this when you could just as easily access the underlying Win32 library, libusb, from unmanaged C/C++. Most low level I/O and hardware related programming is still done in those languages. C# is really designed as a high level, general purpose language though it does have facilities to call Win32 and other unmanaged functions
As for a suitable book, I'd check out USB Complete which seems to be the standard reference on the subject:
http://www.amazon.com/USB-Complete-Everything-Develop-Peripherals/dp/0965081958
However, I'd be surprised if the programming examples were done in anything other than C as the book was written in 2001 when C# was in its infancy.
Jeffrey WannerPosted Jul 30, 2008, 10:44 PM
Ok, Prehaps I should refrase my preveous question. I'm an old dos C++ programer who is into automation, I am looking for a C# book that will cover all of the aspects of input/ output through the USB ports along with machine hardware and video ports. I woulden't mind if it even covered some graphic capabilities. Im more intrested in technical issues then I am into creating games or web sites at this point in time. If visual C# dosen't have those capabilities then can anyone lead me to a software that does?
Electroteck
Basu MalipatilPosted Jul 29, 2008, 5:56 AM
Hi J...
Here i mentioned some books, hope these books are good....
There is a one Book called ASP.NET 2.0 Black Book..I think its a Dreamtech Publication..and one more is there
ASP.NET 2.0 Professional its a Wrox Publication it is also available in
C# Professional....These are good books.. go through that...
Ask feel free....
Basu Malipatil..
Jeffrey WannerPosted Jul 27, 2008, 1:15 PM
Alan
I'll give boath a shot. Thanks for the responce, I apprichate it.
Jeff
AlanPosted Jul 27, 2008, 12:39 PM
As a former C++ programmer, you should be able to get a good grasp of what C# is about by reading this free online book:
http://www.charlespetzold.com/dotnet/
One thing to note is that C# is a pure .NET language though it does contain facilities to call unmanaged API functions and to make use of COM objects.
There's also a version of C++ for .NET known as C++/CLI. This can produce programs which are a mixture of managed and unmanaged code but is much more difficult to learn and use than C#. It's therefore mostly used for programs which need significant interoperation with unmanaged C++ code.