How to make a program that will compile data in the exe?

Hello World!The question has already been above,if that task is not tied to a specific language.
April 19th 20 at 12:07
5 answers
April 19th 20 at 12:09
Solution
Disassemble what is exe format is actually a container that stores executable code and data in the form of icons, dialogs and so on.
spoiler
5e96f06938cda111545108.png

To write your own collector and save the data in .exe

To run it, it will be impossible, if there will be ONLY data.
Thank you,and it will be possible to do this on windows 10(just heard that windows 10 no DOS'a)? - Elt commented on April 19th 20 at 12:12
@Elt, but what's dos? - ransom.Hermiston commented on April 19th 20 at 12:15
@Elt, this can be done if you learn how to program.
You undertake a task too difficult to even formulate a plan.

Practice on something simpler. Or order a freelance. - elouise.Buckridge commented on April 19th 20 at 12:18
April 19th 20 at 12:11
No way.
April 19th 20 at 12:13
Data is data, and executable code is executable code. It is two big differences.
Want code as data - learn Lisp a great language.
April 19th 20 at 12:15
Archiver + function samarasekara?)
April 19th 20 at 12:17
How to make a program that will compile data in the exe?
It's impossible.
Files with the file extension exe is just a particular format of recording files.
And compiling it is quite another is to generate machine code from source code, and this format has no relation.
And the data to write to the file without any problems - the file format allows to store any data, there is only a size restriction.

Find more questions by tags WindowsProgramming