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

P

Peter Smirnov

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Staff online

Members online

Forum statistics

Threads
473,769
Messages
2,569,577
Members
45,054
Latest member
LucyCarper

Latest Threads

Top