Windows Resource Files and DUB

Adam D. Ruppe destructionator at gmail.com
Mon Jun 8 22:29:26 UTC 2026


On Monday, 8 June 2026 at 18:43:20 UTC, Alexander wrote:
> Right now just app icon and version info, but I also need menu, 
> dialog and some more icons to indicate status. I want to 
> implement system tray icon and right-click menu there. And 
> maybe dialog window with logs and/or status and info.

I see. I tend to do all that stuff in code, can `import()` files 
in D and stuff too, but still either way works.

So generally speaking, if you pass the .res file to the compiler, 
it knows how to forward it to the linker. Passing it as a dub 
sourceFiles should work too. Then a preBuildCommand to run the 
resource compiler. (or do a regular makefile or something to 
generate it lol).


More information about the Digitalmars-d-learn mailing list