messages from STDOUT

BlitzMax Forums/BlitzMax Programming/messages from STDOUT

MrCredo(Posted 2007) [#1]
I use a DLL. If i call a function, it write sometimes text to STDOUT

this is the same effect, if you use print

but how can i get this text from STDOUT??? (or transfer this text to a textarea?)

any ideas?


Dreamora(Posted 2007) [#2]
You can't

STDIN is to get stuff into your application
so you would need to map the STDOUT of the DLL to BMs STDIN to get the things it gives out ... or make the DLL an exe and use FreeProcess and Pipe.


N(Posted 2007) [#3]
Use freopen? Or find some other way to redirect it.


MrCredo(Posted 2007) [#4]
and now tell me how can i use freopen with DLL ?