I'm migrating a Petzold-style windows application to C++20 modules. My goal is to learn about the advantages and limits of modules.
After I have overcome several hurdles, one of the last problems left is the Windows resource file. The usual way to define resource identifiers is #define
statements in a header file, which is #include
'd in both the resource file and the C++ source files.
In the new world of C++ modules, I don't want neither #define
nor #include
.
Complete renunciation of Windows resources is probably possible, but does not really inspire me.
Is there any reasonable alternative?