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. Difference between a Dll and an ActivexDll

Difference between a Dll and an ActivexDll

Scheduled Pinned Locked Moved C / C++ / MFC
com
10 Posts 2 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.
  • L Offline
    L Offline
    lgatcodeproject
    wrote on last edited by
    #1

    Hi All, I have referred a term "ActivexDll" I think there exist a concept called ActiveDll, if I am wrong then kindly excuse me and clarify "Difference between a Dll and ActiveX Components ". If I am correct then can any one explain me the difference between a Dll and an ActicexDll. Regards, LG. :)

    lgatcodeproject

    S 1 Reply Last reply
    0
    • L lgatcodeproject

      Hi All, I have referred a term "ActivexDll" I think there exist a concept called ActiveDll, if I am wrong then kindly excuse me and clarify "Difference between a Dll and ActiveX Components ". If I am correct then can any one explain me the difference between a Dll and an ActicexDll. Regards, LG. :)

      lgatcodeproject

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

      DLL is just a binary file containing executable code in PE(Portable Executable) format. One can make DLL's for many purposes like ActiveX objects, COM components, or simple library of functions. -Saurabh

      L 1 Reply Last reply
      0
      • S Saurabh Garg

        DLL is just a binary file containing executable code in PE(Portable Executable) format. One can make DLL's for many purposes like ActiveX objects, COM components, or simple library of functions. -Saurabh

        L Offline
        L Offline
        lgatcodeproject
        wrote on last edited by
        #3

        Hi saurabh, Thanks for the response. can you explain what is the difference between the dll and activex dll. With respect to you answer may be I would put it this way, how does a dll differ when its purpose is to serve an ActiceX Object? Regards, LG.

        lgatcodeproject

        S 1 Reply Last reply
        0
        • L lgatcodeproject

          Hi saurabh, Thanks for the response. can you explain what is the difference between the dll and activex dll. With respect to you answer may be I would put it this way, how does a dll differ when its purpose is to serve an ActiceX Object? Regards, LG.

          lgatcodeproject

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

          Conceptually there is no difference. They both are PE files. It is same as asking what is the difference between two BMP files. -Saurabh

          L 1 Reply Last reply
          0
          • S Saurabh Garg

            Conceptually there is no difference. They both are PE files. It is same as asking what is the difference between two BMP files. -Saurabh

            L Offline
            L Offline
            lgatcodeproject
            wrote on last edited by
            #5

            So, when you import any dll into an ActiveXControl you can call it as ActiceXDll, am I correct? In VC++6.0 New->Project, one can find many projects, where in there is **"MFC AppWizard (dll)"**and another project called "ATL COM AppWizard"->Dll/Service(Exe)/Executable(exe); can you tell me what is the difference between these two projectS? when would one choose these? I had the lead to my initial question from the above option? Regards, LG.

            lgatcodeproject

            S 1 Reply Last reply
            0
            • L lgatcodeproject

              So, when you import any dll into an ActiveXControl you can call it as ActiceXDll, am I correct? In VC++6.0 New->Project, one can find many projects, where in there is **"MFC AppWizard (dll)"**and another project called "ATL COM AppWizard"->Dll/Service(Exe)/Executable(exe); can you tell me what is the difference between these two projectS? when would one choose these? I had the lead to my initial question from the above option? Regards, LG.

              lgatcodeproject

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

              Okay let me explain by an analogy. Let's say you have 100 BMP files. If you ask what type of files I have? Then asnwer is simple they all are BMP files and are no different to each other in that sense. But you can still categorize them based on their "content". You can have family photos, vacation photos, etc. In the same way all DLL's are PE files. But based on what they "do" you can categorize them. If a DLL contain code for acting as an ActiveX control then you can loosely call it ActiveX DLL, just as you would call a family photo. If a code contains bunch of C funcitons you might call it utility DLL. The APP wizard's function is to generate code based on the template you choose. So if you choose MFC ActiveX Control the App Wizard will generate the code which can be compiled into a DLL which will provide the functionality of a ActiveX controls and it will use MFC as well. Hope this clears things up. -Saurabh

              L 1 Reply Last reply
              0
              • S Saurabh Garg

                Okay let me explain by an analogy. Let's say you have 100 BMP files. If you ask what type of files I have? Then asnwer is simple they all are BMP files and are no different to each other in that sense. But you can still categorize them based on their "content". You can have family photos, vacation photos, etc. In the same way all DLL's are PE files. But based on what they "do" you can categorize them. If a DLL contain code for acting as an ActiveX control then you can loosely call it ActiveX DLL, just as you would call a family photo. If a code contains bunch of C funcitons you might call it utility DLL. The APP wizard's function is to generate code based on the template you choose. So if you choose MFC ActiveX Control the App Wizard will generate the code which can be compiled into a DLL which will provide the functionality of a ActiveX controls and it will use MFC as well. Hope this clears things up. -Saurabh

                L Offline
                L Offline
                lgatcodeproject
                wrote on last edited by
                #7

                Thanks saurabh, your anwer added more clarity. So when I say ActiveX Dll it means I need both the functionality of COM and Dll as well. Hope I am getting it all correctly! Regards, LG.

                lgatcodeproject

                S 1 Reply Last reply
                0
                • L lgatcodeproject

                  Thanks saurabh, your anwer added more clarity. So when I say ActiveX Dll it means I need both the functionality of COM and Dll as well. Hope I am getting it all correctly! Regards, LG.

                  lgatcodeproject

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

                  Yes you have got it correctly. -Saurabh

                  L 1 Reply Last reply
                  0
                  • S Saurabh Garg

                    Yes you have got it correctly. -Saurabh

                    L Offline
                    L Offline
                    lgatcodeproject
                    wrote on last edited by
                    #9

                    Thanks for explaining with patience. Have a nice day. Bye. ReEgards, :) LG

                    lgatcodeproject

                    S 1 Reply Last reply
                    0
                    • L lgatcodeproject

                      Thanks for explaining with patience. Have a nice day. Bye. ReEgards, :) LG

                      lgatcodeproject

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

                      You are most welcome. You too have a nice day. -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