gnucobol-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [open-cobol-list] My getting started document


From: David Essex
Subject: Re: [open-cobol-list] My getting started document
Date: Wed, 04 Mar 2009 19:37:45 -0500
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7) Gecko/20040618

It is a quick way to convert a console (C: main ...) to a winapi (C: APIENTRY WinMain ...) application without having to write a 'WinMain'.

The advantage of this method is that winapi application does not automatically open a console when the IE icon is double clicked. The disadvantage is that the 'Accept/Display' (stdin/stdout/stderr) are suppressed.
No idea how a CURSES call would be handled by wind*ws.

It is a GCC MinGW/Cygw*n link option.
So in theory, from the OC command line, it should be '-Wl,-mwindows'. But that does not work, so you have separate the steps.

cobc -c -x wprog03.cob
gcc -mwindows -o tgui02c.exe wprog03.o ... -lcomctl32 -luser32


Bill Klein wrote:
Does the -mwindows option apply to when you do an OC compile (for
Accept/Display" stuff or to how you start Cygwin or where?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]