DLL and .Exe
-
what are the diffaence between .exe and .dll While developing a com componet which is best pratice ..should u go for .exe or .Dll?????
-
what are the diffaence between .exe and .dll While developing a com componet which is best pratice ..should u go for .exe or .Dll?????
DLL is the Best practice for all time ..because its safe and secured. An exe is executable programs and DLL is file that can be loaded and executed dynamically. DLL doesnot have main Function and exe have..
:~ Failure is Success If we learn from it!!:~
-
what are the diffaence between .exe and .dll While developing a com componet which is best pratice ..should u go for .exe or .Dll?????
It is easier to begin by a DLL if you will not use DCOM... :) A DLL component will be faster but more dangerous (by errors) for a client. An EXE component could be a service :)
-
It is easier to begin by a DLL if you will not use DCOM... :) A DLL component will be faster but more dangerous (by errors) for a client. An EXE component could be a service :)
COM servers come in two basic varieties: in-process and out-of-process. In-process servers (often referred to as in-proc servers) are DLLs. They're called in-procs because in the Win32 environment, a DLL loads and runs in the same address space as its client. EXEs, in contrast, run in separate address spaces that are physically isolated from one another. In most cases, calls to in-proc objects are very fast because they're little more than calls to other addresses in memory. Calling a method on an in-proc object is much like calling a subroutine in your own application. Out-of-process servers (also known as out-of-proc servers) come in EXEs. One advantage to packaging COM objects in EXEs is that clients and objects running in two different processes are protected from one another if one crashes. The disadvantage is speed. Calls to objects in other processes are roughly 1,000 times slower than calls to in-proc objects because of the overhead incurred when a method call crosses process boundaries. Please refer Programming Windows with MFC by Jeff Prosise ->COM
-
It is easier to begin by a DLL if you will not use DCOM... :) A DLL component will be faster but more dangerous (by errors) for a client. An EXE component could be a service :)
Given that code is same how can DLL be faster then EXE. -Saurabh