HackerTrans
TopNewTrendsCommentsPastAskShowJobs

rovingeye

no profile record

comments

rovingeye
·5 miesięcy temu·discuss
it's literally the exact same thing. We use trailing return types to be consistent across the language.
rovingeye
·5 miesięcy temu·discuss
This has been valid C++ since C++ 11
rovingeye
·7 miesięcy temu·discuss
It looks like you missed the part where you "move the context into the lambda body via capture specifier."
rovingeye
·7 miesięcy temu·discuss
Consistency (lambdas, etc.)
rovingeye
·7 miesięcy temu·discuss
All my window classes uses cbWndExtra, and I leave GWLP_USERDATA for the user who is creating windows.
rovingeye
·7 miesięcy temu·discuss
That doesn't sound like a valid wndproc
rovingeye
·7 miesięcy temu·discuss
I assume by "move the context into the body" you mean using GetWindowLongPtr? Why not just use a static wndproc at that point?
rovingeye
·7 miesięcy temu·discuss
I wasn't aware of the thread local trick, I solve this problem by not setting WS_VISIBLE and calling SetWindowPos & ShowWindow after CreateWindow returns (this solves some other problems as well..)
rovingeye
·8 miesięcy temu·discuss
I have that turned on in Windows Terminal but still use ctrl+c because it's how all other software works
rovingeye
·9 miesięcy temu·discuss
The windowing is pretty broken if you use system scaling https://github.com/zed-industries/zed/issues/40272
rovingeye
·9 miesięcy temu·discuss
Thanks for the info. Looks like they're using /silent right there in the example

"Steam customers love a quick and silent install. Add silent or quiet parameters to all run process commands and only add what you absolutely need for the game."
rovingeye
·9 miesięcy temu·discuss
MicrosoftEdgeWebview2Setup.exe /silent /install