How to force an immediate writing of the printf() buffer content to console ???

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Peter Smirnov

    How to force an immediate writing of the printf() buffer content to console ???

    I wrote something with printf() to the console (under Windows) in a DLL.
    Then I called back a routine and detected that the output of the later called code
    was written PRIOR to the previous text to the console.
    So I am searching for a way to force Windows (Visual C++) to release the current content
    of the printf buffer.

    I read somewhere that appending a '\n' would do that. But: I already appended a '\n'
    and it didn't help.

    As far as I remember there is a function like flush() or so which has a similar meaning.

    Could someone help me ?

    Thank you
    Peter

Working...