Comment by selbie on Is there a way to make Python interpret `~3` as an...
Two answer your question, you'd need to describe which bit width you'd want the bitwise negation (~) operator to resolve to. 3 is 11 in binary. Do you want that to negate to 00 (0) - negating up to...
View ArticleAnswer by selbie for Linux sed with < and >
Probably this needs to be your sed expression. The trick is that the < and > chars needs to be escaped with a backslash.sed s/\>error\</\>debug\</Example for processing a file named...
View ArticleComment by selbie on What does the 'L' in the beginning even mean?
Most Win32 games still have a basic message pump and HWND to host the main game window.
View ArticleComment by selbie on What are the current HTTP servers listening to?
If you have multiple processes listening on port 3003 and setting the appropriate socket flags such that the port can be shared, there's nothing the OS knows about that would route the URL request to...
View ArticleAnswer by selbie for What does the 'L' in the beginning even mean?
"Game Window Class" is a string literal mostly analogous to an array of standard 8-bit characters (char) with a null char. It's more or less the same as this declaration as you likely knowconst char...
View ArticleAnswer by selbie for What Windows API should I use to create a blurred window?
You could probably get something going with a WS_EX_LAYERED window and setting the alpha to something semi-opaque and do some effects on top that will kind of work.But for an actual blur, Windows UI...
View ArticleAnswer by selbie for What does the 'L' in the beginning even mean?
Somewhere inr your build environment, you have either _UNICODE and/or UNICODE defined. That means the vast majority of Win32 APIs will expect a "long string" aka "unicode string" or "UTF-16 string". It...
View ArticleAnswer by selbie for What does the 'L' in the beginning even mean?
Most Win32 games still have a basic message pump and HWND to host the main game window.
View ArticleAnswer by selbie for Pass and return the 3rd argument from argv
argv is an array of pointers. When you pass an array to a function, it basically degrades to a pointer of whatever type it was. So an array of pointers degrades to a "pointer to a pointer"Change your...
View ArticleAnswer by selbie for How to use in the same piece of code two different...
If can't modify the source, then the easiest solution is to invoke "LoadLibrary" directly on the DLL and "GetProcAddress" to obtain the exported function you seek at runtime instead of directly linking...
View ArticleComment by selbie on BMP color mask alpha brightness calculation
I read your question 3 times and I get lost each time. You're effectively asking how an alpha channel in an ARGB4444 format gets converted back to 32-bit ARGB? Is there a single program that would even...
View ArticleComment by selbie on How to correctly parse a WAV file for use with Android TTS
The hardcoded 44 header bytes constant. WAV files can have a variable sized header based on extra metadata. Where is the code to your parseWavHeader function? What is that "1" parameter for getting...
View ArticleComment by selbie on Why do we need a message pump when setting up an event...
If I had to guess... it just needs the queue to be created in order for the eventing stuff to work. The thread's queue may not be created until the first call to GetMessage or PeekMessage. You could...
View ArticleComment by selbie on Problem with vector of uint8_t to vector of double
Unless depthBytes is already understood to be byte packed floats? That is, every 4 bytes of depthBytes are a single float that just needs to be repacked? Or is depthBytes just an array of bytes - each...
View ArticleComment by selbie on Why does my quantized model perform worse than the...
Make 100% sure that someone can take your code block, paste it into a text file, and run it. As it stands, nn.module is generating an undefined symbol error. Do you have all the correct imports in your...
View ArticleComment by selbie on Win32: "About" program uses DIALOGEX. I wish to...
@ThomasMatthews - wxWidgets is still a thing???
View ArticleComment by selbie on When is htonl(x) != ntohl(x) ? (Or when is converting to...
@CarloWood - you're over-thinking it. :)
View ArticleComment by selbie on Application is crashed on startup after migration to...
Do you have C/C++ code your are compiling as well? What does your diff of changes from A15 to A16 look like? Are you sure this isn't resolved by doing a complete "clean build" - and by clean, I mean...
View ArticleComment by selbie on how to create a dynamically sized array of object of...
What are you really trying to do?
View ArticleComment by selbie on Getting bound Microsoft Visual C++ Runtime version
Have you considered just shipping the runtime version you need and installing it with your application? And/or having the DLLs installed in the same directory as your app?
View Article