This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
RE: Problem using Unicode Windows API with g++
- From: "Chris January" <chris at atomice dot net>
- To: "Cygwin at Cygwin dot Com" <cygwin at cygwin dot com>
- Date: Sun, 8 Sep 2002 21:15:29 +0100
- Subject: RE: Problem using Unicode Windows API with g++
> 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/