0

I have flutter GUI application which calls C++ DLL methods using FFI i.e. Foreign Function Interface . GUI and C++ DLL outputs some statements on console. The problem is I want to redirect those statements ( i.e. anything on stdout ) to show it on GUI in a textbox.

Any idea how to do it using dart/flutter ?

Richard Heap
  • 48,344
  • 9
  • 130
  • 112
BND
  • 51
  • 12
  • @Richard Heap : Is it not possible using flutter/dart ? – BND Feb 28 '23 at 14:01
  • I don't believe so. Why don't you change your DLL to return strings? – Richard Heap Feb 28 '23 at 17:14
  • @RichardHeap it is not related to DLL , even print() is flutter method which prints statements on console which is nothing but stdout. Tell me how to show those statements in a TextField in GUI – BND Mar 01 '23 at 08:07
  • What makes you think you can capture stdout as a String? – Richard Heap Mar 01 '23 at 13:10
  • @RichardHeap it usual practice in GUI development that we show stdout/stderr in textbox which can roughly termed as "Execution Console". It is possible in python's GUI library tkinter. It should be possible in dart/flutter also and that's what I am asking here. It is reasonable expectation that how to show execution log in GUI. – BND Mar 01 '23 at 14:20
  • Is this question wrong and right now there is no such framework in flutter to achieve this ? – BND Apr 03 '23 at 04:34

0 Answers0