How to pack a struct in Visual Studio to 24 bits that contains an uint32_t?
问题 I am trying to port over an existing application from a 32-Bit ARM-microcontroller to desktop plattforms such as Microsoft Windows. GCC is used on the ARM and I was able successfully compile the application on windows using a 32-bit MinGW-compiler, however I had no success using Microsoft's Visual Studio Compiler and that is the reason why I am asking here for help. Here is what my application is doing: I have some framebuffer consisting of three bytes per pixel, so my memory looks like