Can you create an application using notepad with the extension "exe" | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Can you create an application using notepad with the extension "exe"

How applications are created using notepad

16th Aug 2018, 8:06 PM
Joel Caleb Nkrumah
Joel Caleb Nkrumah - avatar
2 Answers
0
You can create a file with an exe extension (or any extension you want) using notepad, but it won't be able to execute it. The OS expects an exe to be in a format called PE, (EDIT: while Notepad uses ASCII text format). You can however, use a hexeditor (an editor that allows you to manually modify each byte of the file) to manually create an "exe" file. However, this is very difficult and forces you to write all your code in raw machine code. Sufficed to say, no one edits .exe files manually. Instead you use a compiler to transform a higher level language (like C) into a PE file Windows can load and start executing. For C/C++/C#/F#/VB.NET on Windows you do this using Microsoft's Visual Studio (which is now free).
16th Aug 2018, 8:20 PM
Vlad Serbu
Vlad Serbu - avatar
0
Thank Brainy
16th Aug 2018, 8:24 PM
Joel Caleb Nkrumah
Joel Caleb Nkrumah - avatar