Waitrud Weber’s blog

things and reminders for memories

Debug Console

Using Windows compiler, we could hardly print console with option "-lwindows".
So, we created sockets console by use of Windows API.


We found convinient sources and compiled, which is the below.

https://stackoverflow.com/questions/20303583/socket-programming-in-mingw
https://stackoverflow.com/questions/5690333/get-text-from-an-edit-control

I'm pleasure if you download the below.
https://github.com/WaitrudWeber/source_zip/blob/master/winmain-20181104.zip

Please reffer to the below for compilation.
https://waitrudweber.hatenablog.com/entry/2018/05/01/005938


And,

 1. You execute winmain_server_001.exe on the console.
 2. You execute client_001.exe.

And then,

 You could find the log on the window of winmain_server_001.exe.

When does it update its windows?
The answer is, we need to update the window console if it is on the background.