I'm keen to share a substantial amount of code between two of my applications. The best way to do this is for me to create a DLL (which I've done) and make both apps use the DLL.
Rather than ship two files to the user (exe and dll) I want to embed the DLL as a resource inside the EXE.
From what I understand, this should be easy. In my header I have:
#define IDR_PKEY_DLL 102
Then, in my .res file I have:
IDR_PKEY_DLL BINARY MOVEABLE PURE res\\Project.dll
However, Windres fails with:
windres.exe: resource.rc:17: syntax error