Difference between a Dll and an ActivexDll
-
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
-
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
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
-
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
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
-
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
Conceptually there is no difference. They both are PE files. It is same as asking what is the difference between two BMP files. -Saurabh
-
Conceptually there is no difference. They both are PE files. It is same as asking what is the difference between two BMP files. -Saurabh
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
-
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
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
-
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
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
-
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
Yes you have got it correctly. -Saurabh
-
Yes you have got it correctly. -Saurabh
Thanks for explaining with patience. Have a nice day. Bye. ReEgards, :) LG
lgatcodeproject
-
Thanks for explaining with patience. Have a nice day. Bye. ReEgards, :) LG
lgatcodeproject
You are most welcome. You too have a nice day. -Saurabh