HackerTrans
TopNewTrendsCommentsPastAskShowJobs

CodeHz

no profile record

comments

CodeHz
·w zeszłym roku·discuss
Actually, it won't compile in msvc (the linking phase, to be precise), MSVC uses different names for methods with different visibilities
CodeHz
·3 lata temu·discuss
Windows do have this API, NtDeleteFile, AND it could be used to delete current running exe. https://twitter.com/jonaslyk/status/1345167613643661312 but it is undocumented...
CodeHz
·3 lata temu·discuss
Funiest thing is, in win11, the notepad use RichEdit again (but use winui's richedit control, not win32
CodeHz
·3 lata temu·discuss
no, you can do it by define SQLITE_DEFAULT_FOREIGN_KEYS=1 while compiling sqlite3
CodeHz
·3 lata temu·discuss
Btw, you can even run a executable file which has been renamed to any extension (.txt or .whatever) in command line. (See PATHEXT env) It just recognized by the explorer (and shellexecute api’ third parameter). So that’s mean all files have “executable” permission by default.
CodeHz
·3 lata temu·discuss
Maybe it just a transparent div that blocked all the pointer events?
CodeHz
·4 lata temu·discuss
it could come from a template function which don't have a sfinae branch (or `if constexpr (std::is_empty<T>::value)`) for empty type