Results 1 to 4 of 4

Thread: a C .exe doesn't read writeToStdin

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,018 Times in 4,794 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: a C .exe doesn't read writeToStdin

    [QUOTE=Shlainn;20118]but I use it with:
    Qt Code:
    1. fgets(serialnmr,sizeof(serialnmr),stdin);
    To copy to clipboard, switch view to plain text mode 
    It doesn't matter. You still need the newline to flush the stdin buffer of your application.

    and another thing I see is that nothing is displayed using readFromStdout until the program (my.exe) has exited.
    Maybe you are missing newlines here, too... In the output buffer this time. You can use fflush() instead of the newline to force the flush too.

  2. The following user says thank you to wysota for this useful post:

    Shlainn (20th September 2006)

Similar Threads

  1. How to read line from file
    By Krishnacins in forum Newbie
    Replies: 10
    Last Post: 1st June 2006, 23:14
  2. Replies: 13
    Last Post: 1st June 2006, 14:01

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.