Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Core » CreateProcessW doesn't compile with CLANG
Re: CreateProcessW doesn't compile with CLANG [message #59835 is a reply to message #59834] Mon, 01 May 2023 16:52 Go to previous messageGo to previous message
Oblivion is currently offline  Oblivion
Messages: 1206
Registered: August 2007
Senior Contributor
Hello Luigi,

It seems that you've hit a problem that the move from 16 bit wchat to 32 bit wchar caused.

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.

Link to the source code: https://github.com/ismail-yilmaz/Terminal/blob/300cb3311bf97 6a2f4a05fc3efefd9e7bc0ee439/PtyProcess/Win32Pty.cpp#L53


Best regards,
Oblivion


 
Read Message
Read Message
Read Message
Previous Topic: DropList STDFONT size changing after Drawn on screen
Next Topic: StrInt returning value
Goto Forum:
  


Current Time: Mon May 12 15:49:10 CEST 2025

Total time taken to generate the page: 0.02870 seconds