X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 	tests=BAYES_00,SPF_PASS
X-Spam-Check-By: sourceware.org
Message-ID: <20100212235510.B08D7.13650.root@cdptpa-web06-z01>
Date: Fri, 12 Feb 2010 18:55:10 -0500
From: <turbowells@maine.rr.com>
To: cygwin@cygwin.com
Subject: Re: Creating a separate console window via CreateProcess
Cc: Christopher Faylor <cgf-use-the-mailinglist-please@cygwin.com>
In-Reply-To: <20100212221057.GA18315@ednor.casa.cgf.cx>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
Sensitivity: Normal
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com


---- Christopher Faylor <cgf-use-the-mailinglist-please@cygwin.com> wrote: 
> On Fri, Feb 12, 2010 at 04:42:39PM -0500, turbowells@maine.rr.com wrote:
> >I built the test program with: gcc -mno-cygwin  creprc.c -o creprc 
> > 
> >Could someone help me understand what I am doing wrong? 
> 
> You're asking the Cygwin list for help.  The whole point of Cygwin is to
> avoid using the windows api.
> 
> However, to answer your specific question, possibly all you need is a
> FreeConsole() in there somewhere.
> 
> If that doesn't help then please find a windows forum for your question
> since it is off-topic here.
> 
> cgf

I should have been clearer in my original note.  The problem isn't with the Windows API, nor with the code I supplied.  The posted code works as I took it right out of the Xming source.  I believe the problem is with the ability of cygwin to cross compile the code. Perhaps it is just an issue with my cygwin environment.  As this list is for all questions concerning cygwin, it would seem to be the appropriate place to ask.  If there is a better list for the question, I am open to suggestions.

-Jeff




--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

