Author Topic: New editions of generic hid for VB and C#  (Read 9347 times)

Jan Axelson

  • Administrator
  • Frequent Contributor
  • *****
  • Posts: 3033
    • Lakeview Research
New editions of generic hid for VB and C#
« on: April 01, 2011, 03:39:51 pm »
In response to these issues:

http://www.janaxelson.com/forum/index.php?topic=177.msg761

I've posted new editions of generic hid for VB and C# here:

http://www.janaxelson.com/hidpage.htm#MyExampleCode

Any problems, post them here.

Jan
« Last Edit: March 28, 2018, 08:25:36 pm by Jan Axelson »

jcddcjjcd

  • Member
  • ***
  • Posts: 14
Re: New editions of generic hid for VB and C#
« Reply #1 on: April 01, 2011, 07:47:24 pm »
Thank you for your ongoing efforts Jan.

Do you have a summary of the changes you have made?

Regards,
John.

Jan Axelson

  • Administrator
  • Frequent Contributor
  • *****
  • Posts: 3033
    • Lakeview Research
Re: New editions of generic hid for VB and C#
« Reply #2 on: April 02, 2011, 12:18:34 pm »
The updated files didn't upload. Will report back.

Jan Axelson

  • Administrator
  • Frequent Contributor
  • *****
  • Posts: 3033
    • Lakeview Research
Re: New editions of generic hid for VB and C#
« Reply #3 on: April 02, 2011, 05:38:09 pm »
The files should be OK. Might have just been a caching problem on my end.

A brief description of the changes from the readme file:

/// V5.0
/// 3/30/11
/// Replaced ReadFile and WriteFile with FileStreams. Thanks to Joe Dunne and John on my Ports forum for tips on this.
/// Simplified Hid.cs.
/// Replaced the form timer with a system timer.

I went with FileStreams mainly so it would work in VB as well as C# without the InvalidOverlappedToPinvoke error.

Jan