Results 1 to 20 of 47

Thread: Windows USB example

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Feb 2012
    Posts
    2
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Windows USB example

    Hi All,
    After I found this example I was very happy and even before trying I modified it to match with my application... then I found out that device detection worked properly but write failed.
    I get a proper read and write handle, no errors at write, but... it seems to send nothing.

    I went back to the example changed nothing but MY_DEVICE_VIDPID and added a debug message after WriteFile to check BytesWritten
    It may be clear that the protocol to my device differs, but I should at least be able to send something even when it is wrong -- or not?
    If I only received an error would help already

    any ideas?
    Thanks

    ---
    BytesWritten always 0
    Last edited by Marc van der Kamp; 14th March 2012 at 08:37.

  2. #2
    Join Date
    Feb 2012
    Posts
    2
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Windows USB example

    Oops... inverted my error checking, WriteFile did give an error (87)

  3. #3
    Join Date
    Mar 2012
    Posts
    2
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Windows USB example

    Hi there,
    I have the same error..I am wondering if you managed to fix it!!
    Thanks

  4. #4
    Join Date
    Mar 2012
    Posts
    2
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Windows USB example

    Hi Marc van der Kamp,

    I am still getting error 87.. Have you fixed it ? I really need to make it work..
    Please help me..

    Many thanks

    Quote Originally Posted by Marc van der Kamp View Post
    Oops... inverted my error checking, WriteFile did give an error (87)
    Hi Marc van der Kamp,

    I am still getting error 87.. Have you fixed it ? I really need to make it work..
    Please help me..

    Many thanks

Similar Threads

  1. Replies: 2
    Last Post: 6th September 2010, 15:22
  2. Replies: 3
    Last Post: 12th July 2010, 07:25
  3. Program runs on Windows 7, crashes on Windows XP
    By JovianGhost in forum General Programming
    Replies: 8
    Last Post: 7th June 2010, 01:55
  4. Deployment Procedure On Windows On Linux and Windows
    By Harshith J.V. in forum Installation and Deployment
    Replies: 4
    Last Post: 9th July 2009, 12:27
  5. Replies: 10
    Last Post: 25th February 2007, 01:23

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.