Okay, so my idea was to bundle both 64-bit and 32-bit into one application, so if it does not run the 64-bit version, it will try to use the 32-bit version.
I read about PE and learned a little about the MS-DOS Real Mode Stub, and it says how it calls the application (usually this error message). But every time I tried to research the MS-DOS Real Mode Stub, it only displayed error messages. So my idea was to overwrite STUB with my 32 bit application.
My self-understanding is that when a 32-bit operating system launches a 64-bit executable, it will fail, and then it will launch the stub file.
Is there a way to make my 32bit / 64bit executable independent?
source share