You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Are you compiling as a console application or regular Windows application? If a console application, the standard outputs should appear there already. If it's built as a Windows application, then one trick is to create a debugging console yourself, and redirect the standard inputs/outputs there. I think something like this should work in that case (not tested, but you can search and find examples on the web):
I will check it out.
I will open a couple more issues soon.It’s a great script engine.
Raymond ***@***.***
Confidential: This information is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. If you are not the addressee, any disclosure, reproduction, copying, distribution, or other dissemination or use of this communication is strictly prohibited. If you have received this transmission in error please notify the sender immediately and delete this e-mail.
On Thursday, July 8, 2021, 10:23 AM, Glen Fraser ***@***.***> wrote:
Are you compiling as a console application or regular Windows application? If a console application, the standard outputs should appear there already. If it's built as a Windows application, then one trick is to create a debugging console yourself, and redirect the standard inputs/outputs there. I think something like this should work in that case (not tested, but you can search and find examples on the web):
::AllocConsole();
freopen( "CONIN$", "r", stdin );
freopen( "CONOUT$", "w", stdout );
freopen( "CONOUT$", "w", stderr );
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
Expected Behavior : How to redirect ChaiScript "cout" and "print" to a Microsoft Windows 10 window?
Actual Behavior
Minimal Example to Reproduce Behavior
The text was updated successfully, but these errors were encountered: