News for hackers. Stuff that matters.
Re:Zig is now also a Windows resource compiler by pjmlp on Saturday October 21, 2023 @05:50PM (#37970791)
With C23 and C++23, you can make use of #embedd for similar purposes.
Re:Zig is now also a Windows resource compiler by intelVISA on Saturday October 21, 2023 @06:03PM (#37970886)
Interesting, is #embed actually in C++23? From my gcc8 tomb I thought such delights were for the Chosen Few who write beautiful C23.
Re:Zig is now also a Windows resource compiler by pjmlp on Sunday October 22, 2023 @02:59AM (#37973409)
And me thinking having GCC 10 as default on cloud shells was already bad enough.

I was wrong on C++ side, apparently it is on track for C++26.

Re:Zig is now also a Windows resource compiler by KingLancelot on Saturday October 21, 2023 @08:27PM (#37971785)
#Embed is in C23, std::embed is hopefully coming in C++26.
Re:Zig is now also a Windows resource compiler by pjmlp on Sunday October 22, 2023 @02:57AM (#37973403)
I stand corrected.
Re:Zig is now also a Windows resource compiler by layer8 on Sunday October 22, 2023 @07:47AM (#37974548)
Win32 resources are much more than that. They have names and type information associated with them, and they can be multilingual (see e.g. [0]). A rich runtime API is provided to dynamically find and load resources from executables/libraries. You can distribute a resource library that other programs can statically link in or dynamically load. Basically, it’s an ABI for resources, including localization support and a schema for UI-related resource types.

[0] https://learn.microsoft.com/en-us/windows/win32/api/winbase/...