Running a program without a terminal window on Windows and Linux

25 views
Skip to first unread message

Alex

unread,
Apr 4, 2024, 10:24:29 AMApr 4
to dislin-users
Hi!
How do I set up the project so that the terminal window does not appear? 
On Windows, I use Code blocks and Visual C++, and on Linux, I use only Codeblocks.

Helmut Michels

unread,
Apr 4, 2024, 11:27:37 AMApr 4
to dislin-users
Hi Alex,

for Windows, you have to replace the main function by the WinMain function for a Windows application.
Note, that WinMain has a different syntax. An alternative is to use the compiler option /Subsystem:windows.
For Linux, you can just suppress all writing to a console window. For example, the option 'unit (0)' directly after
disini will suppress all Dislin output to a console, even warnings and the protocol in disfin.

With best regards,

Helmut   

Alex

unread,
Apr 7, 2024, 5:26:34 AMApr 7
to dislin-users
Hi Helmut,

Thank you very much for the reply. I understood.

With best regards,
Alex
Reply all
Reply to author
Forward
0 new messages