|
|
Home » Developing U++ » UppHub » A terminal emulator widget for U++
Compile problem on WIN10 [message #58812 is a reply to message #51415] |
Tue, 13 September 2022 15:15 |
|
peterh
Messages: 108 Registered: November 2018 Location: Germany
|
Experienced Member |
|
|
Hi, I tried TerminalLayoutExample and some other Examples.
These show a compilation error on WIN 10. It doesnt matter if I use CLang or MSVC.
HANDLE WinPtyCreateProcess(const char *cmdptr, const char *envptr, const char *cd, winpty_t* hConsole)
{
Buffer<wchar> cmd, env;
sCmdToUnicode(cmd, cmdptr);
sEnvToUnicode(env, envptr);
auto hSpawnConfig = winpty_spawn_config_new(
WINPTY_SPAWN_FLAG_AUTO_SHUTDOWN,
cmd, //error here
nullptr,
cd ? ~WString(cd) : nullptr, //error here
env, //error here
nullptr);
C:\upp\UppHub\TerminalCtrl\PtyProcess\Win32Pty.cpp (104): error: no matching function for call to 'winpty_spawn_config_new'
(): auto hSpawnConfig = winpty_spawn_config_new(
C:\upp\UppHub\TerminalCtrl\PtyProcess/lib/include/winpty.h (170): note: candidate function not viable: no known conversion from 'Buffer<Upp::wchar>' (aka 'Buffer<unsigned long>') to 'LPCWSTR' (aka 'const wchar_t *') for 2nd argument
(): winpty_spawn_config_new(UINT64 spawnFlags,
(): 1 error generated.
It cannot convert from Buffer<wchar> to LPCWSTR.
I tried to fix it, but no sucess.
My C++ and Upp knowledge is very limited, C knowledge is pretty good.
It happens with Build 16324 and with the stable Build.
Edit:
I can compile it by this modification:
auto hSpawnConfig = winpty_spawn_config_new(
WINPTY_SPAWN_FLAG_AUTO_SHUTDOWN,
(wchar_t *) ~cmd,
nullptr,
(wchar_t *) (cd ? ~WString(cd) : nullptr),
(wchar_t *) ~env,
nullptr);
Then it compiles and runs, it opens a window, and closes it immediately without any error message.
I dont think this is the intended behaviour.
[Updated on: Tue, 13 September 2022 18:39] Report message to a moderator
|
|
|
|
|
A terminal emulator widget for U++
By: Oblivion on Sat, 23 March 2019 22:31
|
|
|
Re: A terminal emulator widget for U++
By: koldo on Sun, 24 March 2019 16:15
|
|
|
Re: A terminal emulator widget for U++
By: Oblivion on Tue, 26 March 2019 10:02
|
|
|
Re: A terminal emulator widget for U++
By: Oblivion on Tue, 26 March 2019 13:11
|
|
|
Re: A terminal emulator widget for U++
By: koldo on Tue, 26 March 2019 13:21
|
|
|
Re: A terminal emulator widget for U++
By: Novo on Wed, 27 March 2019 23:14
|
|
|
Re: A terminal emulator widget for U++
By: Oblivion on Thu, 28 March 2019 08:01
|
|
|
Re: A terminal emulator widget for U++
By: Novo on Thu, 28 March 2019 16:57
|
|
|
Re: A terminal emulator widget for U++
By: Oblivion on Thu, 28 March 2019 19:21
|
|
|
Re: A terminal emulator widget for U++
By: Oblivion on Mon, 08 April 2019 11:45
|
|
|
Re: A terminal emulator widget for U++
By: Xemuth on Mon, 13 May 2019 13:47
|
|
|
Re: A terminal emulator widget for U++
|
|
|
Re: A terminal emulator widget for U++
|
|
|
Re: A terminal emulator widget for U++
|
|
|
Re: A terminal emulator widget for U++
By: Xemuth on Tue, 16 July 2019 09:34
|
|
|
Re: A terminal emulator widget for U++
|
|
|
Re: A terminal emulator widget for U++
|
|
|
Re: A terminal emulator widget for U++
|
|
|
Re: A terminal emulator widget for U++
|
|
|
Re: A terminal emulator widget for U++
By: koldo on Fri, 26 July 2019 08:18
|
|
|
Re: A terminal emulator widget for U++
|
|
|
Re: A terminal emulator widget for U++
|
|
|
Re: A terminal emulator widget for U++
By: Oblivion on Fri, 02 August 2019 13:54
|
|
|
Re: A terminal emulator widget for U++
By: Oblivion on Wed, 07 August 2019 21:24
|
|
|
Re: A terminal emulator widget for U++
By: Oblivion on Mon, 12 August 2019 11:39
|
|
|
Re: A terminal emulator widget for U++
By: Oblivion on Fri, 16 August 2019 14:29
|
|
|
Re: A terminal emulator widget for U++
By: Oblivion on Sun, 22 September 2019 12:01
|
|
|
Re: A terminal emulator widget for U++
By: Oblivion on Sat, 28 September 2019 22:00
|
|
|
Re: A terminal emulator widget for U++
By: Oblivion on Sun, 03 November 2019 15:03
|
|
|
Re: A terminal emulator widget for U++
By: Oblivion on Sun, 10 November 2019 21:49
|
|
|
Re: A terminal emulator widget for U++
By: Oblivion on Tue, 12 November 2019 16:36
|
|
|
Re: A terminal emulator widget for U++
By: Oblivion on Tue, 12 November 2019 20:08
|
|
|
Re: A terminal emulator widget for U++
By: Oblivion on Wed, 25 March 2020 14:20
|
|
|
Re: A terminal emulator widget for U++
By: deep on Wed, 25 March 2020 19:12
|
|
|
Re: A terminal emulator widget for U++
By: Oblivion on Thu, 26 March 2020 16:54
|
|
|
Re: A terminal emulator widget for U++
By: Oblivion on Fri, 10 April 2020 02:17
|
|
|
Re: A terminal emulator widget for U++
By: Oblivion on Sat, 11 April 2020 00:30
|
|
|
Re: A terminal emulator widget for U++
By: Oblivion on Fri, 17 April 2020 22:30
|
|
|
Re: A terminal emulator widget for U++
By: Oblivion on Tue, 21 April 2020 18:35
|
|
|
Re: A terminal emulator widget for U++
By: Oblivion on Wed, 22 April 2020 18:51
|
|
|
Re: A terminal emulator widget for U++
By: Oblivion on Sat, 25 April 2020 00:36
|
|
|
Re: A terminal emulator widget for U++
|
|
|
Re: A terminal emulator widget for U++
|
|
|
Re: A terminal emulator widget for U++
|
|
|
Re: A terminal emulator widget for U++
|
|
|
Re: A terminal emulator widget for U++
|
|
|
Re: A terminal emulator widget for U++
|
|
|
Re: A terminal emulator widget for U++
|
|
|
Re: A terminal emulator widget for U++
|
|
|
Re: A terminal emulator widget for U++
By: Zbych on Thu, 11 June 2020 00:13
|
|
|
Re: A terminal emulator widget for U++
|
|
|
Re: A terminal emulator widget for U++
By: Zbych on Sun, 21 June 2020 22:16
|
|
|
Re: A terminal emulator widget for U++
|
|
|
Re: A terminal emulator widget for U++
By: Zbych on Sun, 21 June 2020 22:47
|
|
|
Re: A terminal emulator widget for U++
|
|
|
Re: A terminal emulator widget for U++
|
|
|
Re: A terminal emulator widget for U++
By: Zbych on Thu, 25 June 2020 20:40
|
|
|
Re: A terminal emulator widget for U++
|
|
|
Re: A terminal emulator widget for U++
|
|
|
Re: A terminal emulator widget for U++
|
|
|
Re: A terminal emulator widget for U++
|
|
|
Re: A terminal emulator widget for U++
|
|
|
Re: A terminal emulator widget for U++
By: Oblivion on Sat, 01 August 2020 20:48
|
|
|
Re: A terminal emulator widget for U++
By: Oblivion on Fri, 21 August 2020 13:29
|
|
|
Re: A terminal emulator widget for U++
By: Oblivion on Sat, 05 September 2020 16:45
|
|
|
Re: A terminal emulator widget for U++
By: Oblivion on Thu, 01 October 2020 18:11
|
|
|
Re: A terminal emulator widget for U++
By: Oblivion on Tue, 13 October 2020 12:41
|
|
|
Re: A terminal emulator widget for U++
By: Klugier on Tue, 13 October 2020 20:41
|
|
|
Re: A terminal emulator widget for U++
By: hongnod on Thu, 03 December 2020 15:05
|
|
|
Re: A terminal emulator widget for U++
By: Oblivion on Thu, 03 December 2020 16:25
|
|
|
Re: A terminal emulator widget for U++
By: hongnod on Fri, 04 December 2020 06:58
|
|
|
Re: A terminal emulator widget for U++
By: Oblivion on Sat, 05 December 2020 16:21
|
|
|
Re: A terminal emulator widget for U++
By: Oblivion on Wed, 09 December 2020 00:54
|
|
|
Re: A terminal emulator widget for U++
By: Oblivion on Sat, 23 January 2021 01:25
|
|
|
Re: A terminal emulator widget for U++
By: Oblivion on Mon, 01 February 2021 21:18
|
|
|
Re: A terminal emulator widget for U++
By: Oblivion on Wed, 03 February 2021 17:12
|
|
|
Re: A terminal emulator widget for U++
By: Oblivion on Fri, 12 February 2021 17:42
|
|
|
Re: A terminal emulator widget for U++
By: Klugier on Fri, 12 February 2021 21:58
|
|
|
Re: A terminal emulator widget for U++
By: Oblivion on Fri, 12 February 2021 22:26
|
|
|
Re: A terminal emulator widget for U++
By: Klugier on Fri, 12 February 2021 23:00
|
|
|
Re: A terminal emulator widget for U++
By: Oblivion on Fri, 12 February 2021 23:14
|
|
|
Re: A terminal emulator widget for U++
By: Oblivion on Tue, 23 February 2021 22:57
|
|
|
Re: A terminal emulator widget for U++
By: Oblivion on Sat, 27 February 2021 22:07
|
|
|
Re: A terminal emulator widget for U++
By: Oblivion on Mon, 01 March 2021 23:49
|
|
|
Re: A terminal emulator widget for U++
By: Oblivion on Wed, 03 March 2021 20:45
|
|
|
Re: A terminal emulator widget for U++
By: Oblivion on Sun, 07 March 2021 14:42
|
|
|
Re: A terminal emulator widget for U++
|
|
|
Re: A terminal emulator widget for U++
|
|
|
Re: A terminal emulator widget for U++
|
|
|
Re: A terminal emulator widget for U++
|
|
|
Re: A terminal emulator widget for U++
By: Novo on Tue, 15 June 2021 16:41
|
|
|
Re: A terminal emulator widget for U++
By: Klugier on Fri, 26 November 2021 23:19
|
|
|
Re: A terminal emulator widget for U++
By: Oblivion on Sat, 27 November 2021 07:51
|
|
|
Re: A terminal emulator widget for U++
By: Oblivion on Sat, 27 November 2021 10:47
|
|
|
Re: A terminal emulator widget for U++
By: slashupp on Tue, 21 December 2021 07:39
|
|
|
Re: A terminal emulator widget for U++
By: Oblivion on Tue, 21 December 2021 09:40
|
|
|
Re: A terminal emulator widget for U++
By: Oblivion on Sat, 12 February 2022 19:16
|
|
|
Re: A terminal emulator widget for U++
|
|
|
Re: A terminal emulator widget for U++
|
|
|
Re: A terminal emulator widget for U++
|
|
|
Re: A terminal emulator widget for U++
|
|
|
Re: A terminal emulator widget for U++
|
|
|
Re: A terminal emulator widget for U++
|
|
|
Compile problem on WIN10
By: peterh on Tue, 13 September 2022 15:15
|
|
|
Re: Compile problem on WIN10
By: Oblivion on Tue, 13 September 2022 21:39
|
|
|
Re: Compile problem on WIN10
By: peterh on Wed, 14 September 2022 03:48
|
|
|
Re: Compile problem on WIN10
By: Oblivion on Thu, 15 September 2022 00:31
|
|
|
Re: Compile problem on WIN10
By: peterh on Thu, 15 September 2022 06:54
|
|
|
Re: Compile problem on WIN10
By: Oblivion on Thu, 15 September 2022 07:14
|
|
|
Re: A terminal emulator widget for U++
By: Oblivion on Thu, 15 September 2022 07:25
|
|
|
Re: A terminal emulator widget for U++
By: peterh on Thu, 15 September 2022 07:58
|
|
|
Re: A terminal emulator widget for U++
By: peterh on Thu, 15 September 2022 09:03
|
|
|
Re: A terminal emulator widget for U++
By: Oblivion on Thu, 15 September 2022 19:09
|
|
|
Re: A terminal emulator widget for U++
By: peterh on Fri, 16 September 2022 06:10
|
|
|
Re: A terminal emulator widget for U++
By: peterh on Fri, 16 September 2022 07:41
|
|
|
Re: A terminal emulator widget for U++
By: Oblivion on Sat, 17 September 2022 18:40
|
|
|
Re: A terminal emulator widget for U++
By: peterh on Sat, 17 September 2022 20:58
|
|
|
Re: A terminal emulator widget for U++
By: Oblivion on Sun, 20 November 2022 21:11
|
|
|
Re: A terminal emulator widget for U++
By: Oblivion on Sat, 31 December 2022 11:19
|
|
|
Re: A terminal emulator widget for U++
|
|
|
Re: A terminal emulator widget for U++
By: Oblivion on Sun, 17 December 2023 15:04
|
|
|
Re: A terminal emulator widget for U++
By: Oblivion on Fri, 22 December 2023 00:23
|
|
|
Re: A terminal emulator widget for U++
By: Oblivion on Sat, 06 January 2024 21:45
|
|
|
Re: A terminal emulator widget for U++
By: Oblivion on Sat, 13 April 2024 10:42
|
Goto Forum:
Current Time: Wed May 08 07:09:48 CEST 2024
Total time taken to generate the page: 0.03248 seconds
|
|
|