Hello! I am trying to create a GUI program using the windows api and no external libraries.
I've created a .ico file for the icon I want to use and I want to be able to pack it in with the executable so I don't have to ship the icon separately, if that makes sense.
I created a simple resource file resource.rc that looks like this:
IDI_MYICON ICON "icon.ico"```
And a header file `resource.h` that looks like this:
```#define IDI_MYICON 101``` (yes that's all for both)
Then I used `windres .\resource.rc` to precompile it into a file called `resource.h.gch`.
Supposedly I should just be able to use `LoadIcon(hInstance, MAKEINTRESOURCE(IDI_MYICON));` to load the icon and it should work, but it isn't loading the icon at all and uses the default executable icon when loaded. Where am I going wrong?
(apologies if this doesn't make sense I'm happy to clarify, lol)