I am writing an Visual C++ program in pure Win32 API. As per my understanding, I need to separately compile and generate executable for x86 and x64 architecture.
How do I combine them into single executable and emit the x64 at runtime? I have seen Sysinternals tools doing the same , but don't know how it is done programmatically.
Do I have to include my x64 version as a resource into x86 and then write to filesystem and do CreateProcess ?
Any pointers ?
