Home » U++ Library support » U++ Core » CreateProcessW doesn't compile with CLANG
Re: CreateProcessW doesn't compile with CLANG [message #59838 is a reply to message #59835] |
Mon, 01 May 2023 21:38  |
 |
forlano
Messages: 1207 Registered: March 2006 Location: Italy
|
Senior Contributor |
|
|
Oblivion wrote on Mon, 01 May 2023 16:52
You need to convert the strings into WCHARS (16 bits) in order for CreateProcessW to work.
You can check my PtyProcess class (ln 53-90) to see how to -hopefully- solve this issue for both cmdline and env strings.
Hello Oblivion,
thanks a lot for the answer. In fact
Vector<WCHAR> cmd = ToSystemCharsetW(commandline);
cmd.Add(0);
did the trick and converted the command line. I was not aware of this change, or I had not realised it could affect me.
Now I understand why on my production machine I had not this issue. There I had an U++ distro pre April 2022!
Thanks again!
Luigi
[Updated on: Mon, 01 May 2023 21:39] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Mon May 12 13:29:02 CEST 2025
Total time taken to generate the page: 0.03765 seconds
|