Author Topic: Replaced ReadFile and WriteFile with FileStreams in genericHid project  (Read 8789 times)

m.alizadeh91

  • Member
  • ***
  • Posts: 17
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
 

Jan Axelson

  • Administrator
  • Frequent Contributor
  • *****
  • Posts: 3033
    • Lakeview Research
Re: Replaced ReadFile and WriteFile with FileStreams in genericHid project
« Reply #1 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

m.alizadeh91

  • Member
  • ***
  • Posts: 17
Re: Replaced ReadFile and WriteFile with FileStreams in genericHid project
« Reply #2 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?

Jan Axelson

  • Administrator
  • Frequent Contributor
  • *****
  • Posts: 3033
    • Lakeview Research
Re: Replaced ReadFile and WriteFile with FileStreams in genericHid project
« Reply #3 on: August 02, 2011, 05:48:27 pm »
I've put them back up:

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

Jan

m.alizadeh91

  • Member
  • ***
  • Posts: 17
Re: Replaced ReadFile and WriteFile with FileStreams in genericHid project
« Reply #4 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