You should probably skip checking that image_data_address == 138 since that value is different depending on what software produced your bitmap. Sorry for that error.
@@fakesocialdynamics9929 Sorry for the long wait mate. Last year life got much busier for me, and RU-vid videos got shunted down the priority list. I'm still spending a lot of time coding and once I'm at a certain spot with that, I'll be making some more tutorials 😊👍
There is a memory access violation error in memcpy(frame_pointer, sprite_pointer, sprite_byte_width); because you never allocated memory for frame.pixels.
When I call CreateWindow, the WIndows API calls WindowProcessMessage with a WM_SIZE message (among other messages) which allocates frame.pixels. As far as I know this is always the case on Windows 10 and later. Are you on an earlier version of Windows?
buenos dias me interesa su video pero me podria ayudar busnco una algoritmo que me muetre un simple bmp en 256 colores o de 32 bit pero sin transparencia simple, que se compatible con turbo c si se que es muy biejo pero ocupo que el programa final corra en dos, si usar un sistema operativo gracias
I found in the .bmp files produced by GIMP that it was 138. However that check should probably just be skipped in order to be more compatible. That was a mistake on my part.
@@UltimaN3rd Thank you for your prompt reply! Yes, indeed, the value fits in your picture. Photoshop mostly uses the value 54. However, it depends on what save options you use (in Photoshop). The value can indeed be different!
Hey, I'm getting a debug error on line six from the ellipsis error: "expected a ')'" line: " PRINT_ERROR(a, args...) " ^ Do you know why this is? I'm using Visual Studio Code for my IDE, and Intelisense to code browse.
I started to write a bitmap loader in "C" but got distracted along the way...attention span issues. drive.google.com/file/d/1YFZ4WKrJMh5uiwuqVx9mCi5Ep7mB0vU_/view?usp=sharing
Lol some odd stuff you got up to there with bitmaps 😅 It seems like you put quite a bit of effort into your video, so why'd you upload it to Google Drive instead of your RU-vid channel for anyone to watch?