bluedxca93
Member
- Local time
- 4:52 AM
- Posts
- 23
- OS
- 24h2 , 24.10
Hi everyone,
I've recently written a minimal file manager called cabinet using GTK3 and MSYS2, and I'm trying to figure out how to pack PNG icons into a DLL so that they can be accessed by my application at runtime. I would appreciate any guidance or examples on how to achieve this. Below are the details of my setup and what I've tried so far.Current Setup
- Operating System: Windows 11
- Development Environment: MSYS2
- Graphics Library: GTK3
- Programming Language: C/C++
Requirements
- Pack PNG Icons: I want to bundle several PNG icons into a single DLL file.
- Load Icons at Runtime: The application should be able to load these icons during runtime.
What I Have Tried
- As a temporary solution, I placed the PNG files in the same directory as the executable. However, this isn't ideal for deployment.
- Creating the DLL:
- What tools and commands should I use in MSYS2 to create a DLL?
- How should I structure the project directory?
- Embedding PNG Files:
- What is the best way to embed PNG files into the DLL?
- Are there specific tools or libraries I should use?
- Loading Icons in GTK:
- How can I access and load these icons from the DLL at runtime?
- Are there specific GTK functions or techniques I should be aware of?

Using the windows api just will not wirk as SII_COPY or STD_COPY and so on is broken on windows 11 due to gui redesign and msys2 mi9ngw compiler.
Best regards,
bluedxca93
Last edited:
My Computer
System One
-
- OS
- 24h2 , 24.10
- Computer type
- PC/Desktop
- Manufacturer/Model
- Amd






