PORTS Forum

Ports and Interfaces => General Discussion => Topic started by: smays on June 28, 2010, 07:50:33 am

Title: Jan Axelson Books (Serial Port Complete, USB Complete, etc...)
Post by: smays on June 28, 2010, 07:50:33 am
I was studying notes on what the books cover and apparently the books include programming examples.  From what I read, the examples are for .Net this and .Net that.  Not everybody uses .Net (in fact I hope to fight it to the bitter end), so are there no simple Win32 examples available?  Quite often the 'problems' application developers encounter have less to do with hardware and considerably more with fumbling through...Win32 API's, .Net, etc...  From much effort of my own since 1999, I have collected fragments of code that uses the Win32 API (quite well) to write my own easy-to-use C++ wrapper.  I was studying some code to access USB that also uses the Win32 API.  The thing is, who knows when to use what data when, etc...?

If there is any 'legacy' programming examples that use the Win32 API, is it possible to publish it (one way or the other)?

Thanks,
Steve.
Title: Re: Jan Axelson Books (Serial Port Complete, USB Complete, etc...)
Post by: Jan Axelson on June 28, 2010, 09:07:58 am
.NET doesn't provide classes for accessing generic HID or WinUSB devices, so my .NET HID and WinUSB code uses API functions to access the devices. If not using .NET, you're spared the effort of translating to .NET syntax.

My HID page has a VC++ example application, and my HID and WinUSB pages have links to Microsoft's example code in C. Hope that helps.

Jan
Title: Re: Jan Axelson Books (Serial Port Complete, USB Complete, etc...)
Post by: smays on June 28, 2010, 09:19:07 am
Thanks for your prompt reply.  Your reply is encouraging, and I will be sure to check out the VC++ example.

Thanks,
Steve.
Title: Re: Jan Axelson Books (Serial Port Complete, USB Complete, etc...)
Post by: GlennP on August 03, 2010, 02:28:50 pm
Umm Hi,
Having felt the raw pain .Net,I can recommend (for a non net method) "C++ Communications Utilites", by PC Magazines Michael Holmes & Bob Flanders, published by Ziff Davis press ISBN 1-56276-110-2.
It gives a Windows 32 base to serial comms using VC++6 & Borland Builder(!). Quite easy to follow and being Non-Net Windows it should be for you.  Out of Print but Amazon had some.

Glenn
 
Title: Re: Jan Axelson Books (Serial Port Complete, USB Complete, etc...)
Post by: GlennP on August 04, 2010, 08:55:30 am
Umm Hi,
Having felt the raw pain .Net,I can recommend (for a non net method) "C++ Communications Utilites", by PC Magazines Michael Holmes & Bob Flanders, published by Ziff Davis press ISBN 1-56276-110-2.
It gives a Windows 32 base to serial comms using VC++6 & Borland Builder(!). Quite easy to follow and being Non-Net Windows it should be for you.  Out of Print but Amazon had some.

Glenn
>>>Also the older edition of Serial Port Complete used VB6 & MSComm also Parallel Port Complete uses no Net stuff,