PORTS Forum

Ports and Interfaces => USB => Topic started by: m.alizadeh91 on August 02, 2011, 03:09:04 pm

Title: Replaced ReadFile and WriteFile with FileStreams in genericHid project
Post by: m.alizadeh91 on August 02, 2011, 03:09:04 pm
Hello sir and very thanks for you..
I'm writing a code based on your book with a help from your project genericHid in C#.net. After finding hid
devices i noticed that you Replaced ReadFile and WriteFile with FileStreams.
I want know the reason of that. have ReadFile and WriteFile functions some disadvantages??

Thanks Jan
 
Title: Re: Replaced ReadFile and WriteFile with FileStreams in genericHid project
Post by: Jan Axelson on August 02, 2011, 03:46:57 pm
Either way can work. For a link to a detailed discussion, see:

http://www.lvr.com/forum/index.php?topic=385.msg1348#msg1348

Jan
Title: Re: Replaced ReadFile and WriteFile with FileStreams in genericHid project
Post by: m.alizadeh91 on August 02, 2011, 05:17:44 pm
Thanks a lot sir
How can i get your old project(genericHid)  before it has been edited?
Title: Re: Replaced ReadFile and WriteFile with FileStreams in genericHid project
Post by: Jan Axelson on August 02, 2011, 05:48:27 pm
I've put them back up:

http://www.lvr.com/hidpage.htm

Jan
Title: Re: Replaced ReadFile and WriteFile with FileStreams in genericHid project
Post by: m.alizadeh91 on August 02, 2011, 05:52:14 pm
I dont know how to appreciate you jan :)
God bless you...
Thanks a lot and hope you good days