Skip to main content

Joymaker

Chapel Hill, NC, USA

14h
asked Half second delay playing sound with SDL_mixer
May
5
comment Batch converting AIFF to WAV
It should be pointed out that the brew install dragged in well over 50 dependencies! Not a trivial install.
May
2
asked SDL2 problems with finding game controllers
Feb
10
comment Why did I start getting 'max': identifier not found error in C++?
std::max is no perfect solution. It breaks trying to compare int to long, instead of just letting the compiler promote the type as needed.
Jan
21
answered Visual Studio CMake project can't find C++ standard includes
Jan
20
comment Visual Studio CMake project can't find C++ standard includes
I need unistd.h for sleep(). Most online references say that’s the place to look for it. So, does that function even exist in a VC++ world? In some other header?
Jan
17
comment Visual Studio CMake project can't find C++ standard includes
@AhmedAEK - I’m running cmake within MSVC because that’s the only environment I can find with a debugger that works on Windows/ARM. How gladly I would have used VSCode with msys2, but I could find no debugger there that works! Windows/ARM seems to be a forgotten stepchild.
Jan
17
asked Visual Studio CMake project can't find C++ standard includes
Jan
15
comment Incorrect error report from VC++ debugger
I'm tempted to just turn off STRICT. But first, is there a good way that I could code this more gracefully so that the debugger would display it more gracefully? Can a debugger display the data hidden in a handle at all? Or is that data hidden behind operating system magic?
Jan
14
asked Incorrect error report from VC++ debugger
Jan
13
comment What does LoadImageA actually require?
Here’s a small example file that fails to load: easyupload.io/w0rsdk
Jan
13
answered Please add a system to allow file uploads attached to questions and answers
Jan
13
comment What does LoadImageA actually require?
Thanks that’s partway there. I am surprised at your remark: seems to me, if relative pathnames are that unreliable, something is BROKEN! But anyway, results: I create a BMP file from scratch with Paint, it loads just fine. I take one I was already using and re-save it (with or without making a change) and it does not load. Both files are 240 dpi. The successful one is 64 X 64 pixels, the unsuccessful one is 74 X 152 pixels. Any more ideas?
Jan
10
asked What does LoadImageA actually require?
Jan
9
awarded Yearling
Jan
9
awarded Yearling
Jan
9
awarded Popular Question
2024
Dec
19
comment Minimalist load and draw BMP file in Win32?
So how does this all relate to BITMAPINFO (device-independent bitmap) and is there a good way to read BMP files into that memory format? Or is that a more involved approach?
Dec
18
revised Minimalist load and draw BMP file in Win32?
Added discussion of BITMAPINFO
Dec
18
asked Minimalist load and draw BMP file in Win32?
1 2 3 4 5