I compiled calc.exe 32-bit with with the resource compiler rc.exe in command line, on Windows 10 with VS 2017.
When I try to execute it, after loading the resource and writing it to a file, I get the:
"Unsupported 16-bit Application"
"The program or feature cannot start or run due to incompatibility with 64-bit versions of Windows." error dialog.
I tried to compile it as 64-bit but gave me the same result.
What could be the problem?