This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]