From: Thomas S. <ste...@gm...> - 2009-06-20 13:24:28
|
Hello ColdShine, >> [...] > ...this means that here you're converting a char* to wchar_t* on input > to CommandLineToArgvW, and then you cast its return back to a "narrow" > string (actually, a vector of strings - what matters is how you'll end > up accessing the characters). > [...] > allocates, returning that to you. You then interpret that string back > as a narrow string, so finding all the characters intact, but as a > single long argument. That explains your count of one. > > I'm not sure how you actually compiled this with Visual Studio, so I'm > not gonna try to understand why that works for you. Yes, I still tried to mix ANSI and Unicode code, which doesn't work. I fixed that and now using #ifdef UNICODE etc. and now it compiles in VS as Unicode and Ansi version and with mignw as ANSI Version. Thanks for your comment. Thomas |