Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com X-WM-Posted-At: avacado.atomice.net; Sun, 8 Sep 02 21:15:29 +0100 From: "Chris January" To: "Cygwin AT Cygwin DOT Com" Subject: RE: Problem using Unicode Windows API with g++ Date: Sun, 8 Sep 2002 21:15:29 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 In-Reply-To: > When I compile and run the program below with g++ version 2 or 3 under > Cygwin it crashes. It makes no difference whether I use the -mno-cygwin > parameter or not. The same program using the ANSI APIs doesn't crash. What > am I doing wrong? > Oops - I didn't read the Platform SDK: lpCommandLine [in, out] Pointer to a null-terminated string that specifies the command line to execute. Windows NT/2000/XP: The Unicode version of this function, CreateProcessW, ****will fail if this parameter is a const string****. Chris -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/