When DLL or Exe file Will Results?

Posted by Rajeshk under C# on 11/21/2012 | Points: 10 | Views : 1102 | Status : [Member] | Replies : 11
HI All,
can one tell me the When the .DLL file result and When the .Exe File will result?

Thanks&Regards
rajeshkommireddy@gmail.com



Responses

Posted by: Sandhyab on: 11/21/2012 [Member] Starter | Points: 25

Up
0
Down
Hi,
A DLL is library and it can not be executed. If we run we will get error. exe is program that can be executed. Exe files are used to launch an application as it contains start up funcions where as DLL is load into an application. One can not run them.DLLs have an export section where symbols are exported. Exes should never have an export section since they aren't libraries .

Thanks & Regards

Rajeshk, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Rajeshk on: 11/21/2012 [Member] Starter | Points: 25

Up
0
Down
HI sandhya,
Thank you Sandhya for your replay but my question is Where they will result? when the .dll file result and when the .exe file result?



Thanks&Regards
rajeshkommireddy@gmail.com

Rajeshk, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Sandhyab on: 11/21/2012 [Member] Starter | Points: 25

Up
0
Down
DLL will result when you compile. And, In console application if you run the program then exe files will result.
Thanks & Regards

Rajeshk, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Rajeshk on: 11/21/2012 [Member] Starter | Points: 25

Up
0
Down
Do you mean except console apps all the applications like windows,web will result only in .dll files after compiling? or is there any posibilty in those also

Thanks&Regards
rajeshkommireddy@gmail.com

Rajeshk, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Sandhyab on: 11/21/2012 [Member] Starter | Points: 25

Up
0
Down
I dont have much knowledge on this. If we like to convert any program to .exe(C,C++,java,jar) files some software tools are there. We can download if we want to convert. And console applications are nothing but windows applications.

Thanks & Regards

Rajeshk, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Rajeshk on: 11/21/2012 [Member] Starter | Points: 25

Up
0
Down
Ok sandhya thank you but i want to tell you onething console applications(applications by languages like c,c++,java) are not windows applications(ex ms office,calculater)

Thanks&Regards
rajeshkommireddy@gmail.com

Rajeshk, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Sandhyab on: 11/21/2012 [Member] Starter | Points: 25

Up
0
Down
O.k Thank you for Rectifying.

Thanks & Regards

Rajeshk, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Saratvaddilli on: 11/21/2012 [Member] [MVP] Bronze | Points: 25

Up
0
Down
Hi rajesh,
DLL is the source code for our deployed application .
both are the executable files.But main difference is that .exe can run independantly.But .dll can be part of the .exe.
So dll is the superset of exe.
DLL:
They can be reused and not self - executable , they don't have any main function

EXE:
They can not be reused and self - executable , they have main function

Both r executable files,.dll run in application process
memory,but .exe run in its own process memory.


To run any dll file we need a support for of EXE file

Hope it helps you..

Thanks and Regards
V.SaratChand
Show difficulties that how difficult you are

Rajeshk, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Rajeshk on: 11/22/2012 [Member] Starter | Points: 25

Up
0
Down
hi Sarath,
Your Answer clearing some of my doubts but my question is Where they result can you give me the code which gives both .dll and .exe files by that i will understand.

Thanks&Regards
rajeshkommireddy@gmail.com

Rajeshk, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Saratvaddilli on: 11/22/2012 [Member] [MVP] Bronze | Points: 25

Up
0
Down
rajesh let me clear u one thing

in dll files we can't see the inner code we can just utilize that dll file where ever we want and the exe file we all know about that having some code on executing that files gives some result.
we can utilize the dll in the exe files

in a better way i can tell you is:
dll is like a function , if we need that function in our code we just include that dll and utilize that one

Thanks and Regards
V.SaratChand
Show difficulties that how difficult you are

Rajeshk, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Rajeshk on: 11/22/2012 [Member] Starter | Points: 25

Up
0
Down
hi sarath, you are not understanding my question Sandhyab said console apps will result mostly .exe is it right? or all the applications (console,window,web) will have the both(.exe ,.dll)? as per my knowledge .exe files has been seemed in console apps right?

Thanks&Regards
rajeshkommireddy@gmail.com

Rajeshk, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response