Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. DLL and .Exe

DLL and .Exe

Scheduled Pinned Locked Moved C / C++ / MFC
comquestion
5 Posts 5 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    ramina sen
    wrote on last edited by
    #1

    what are the diffaence between .exe and .dll While developing a com componet which is best pratice ..should u go for .exe or .Dll?????

    G E 2 Replies Last reply
    0
    • R ramina sen

      what are the diffaence between .exe and .dll While developing a com componet which is best pratice ..should u go for .exe or .Dll?????

      G Offline
      G Offline
      Game point
      wrote on last edited by
      #2

      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!!:~

      1 Reply Last reply
      0
      • R ramina sen

        what are the diffaence between .exe and .dll While developing a com componet which is best pratice ..should u go for .exe or .Dll?????

        E Offline
        E Offline
        Eugen Podsypalnikov
        wrote on last edited by
        #3

        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 :)

        B S 2 Replies Last reply
        0
        • E Eugen Podsypalnikov

          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 :)

          B Offline
          B Offline
          BIJU Manjeri
          wrote on last edited by
          #4

          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

          1 Reply Last reply
          0
          • E Eugen Podsypalnikov

            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 :)

            S Offline
            S Offline
            Saurabh Garg
            wrote on last edited by
            #5

            Given that code is same how can DLL be faster then EXE. -Saurabh

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups