Results 1 to 20 of 47

Thread: Windows USB example

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #34
    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.

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.