When we create an application we write the coding in a separate file called the source file which gets an extension (cpp). We store our coding in a file cpp.
Also using resource editor utility we can create the window components like menus, toolbar etc and this file is saved in a separate file (rc) also known as resource file with an extension (rc).
After this we compile both the source and resource file. Source file (cpp) file will be compiled with vc-compiler and the resource file will be compiled by resource compiler. Now after compilation the source file is compiled to form an object file (obj) and resource file is also compiled to form a (res) file.
Now after compilation the linking process is done. In this process both the obj and res files are combined to form an .exe file. But this exe file alone is not sufficient to run. So during linking some dll files are also added. Basically three dll files are linked
- user32.dll
- gui32.dll
- kernel32.dll