Sunday, August 2, 2009

Whats Dll files?and whats activex?and how could they programmed over C,C++?

A DLL is a compiled library that can be called from either an executable or another DLL. Typically methods that share a common functionality reside in the same DLL.





ActiveX is a COM-based technology. It allows developers to write objects using a common interface (COM) without having to know the exact implementation of the library in which the object resides. ActiveX/COM objects (and their libraries) are registered with the system registry and are called using a unique identifier (GUID). The details of an ActiveX/COM object usually resides within either a type library, or the module in which they reside.





There are two types of ActiveX/COM "servers" - in-process and out-of-process. In-process servers are objects which reside in a DLL and are loaded into the same process space as the calling executable. Out-of-process servers are objects which reside in an executable outside the calling executable. There are several restrictions on what types of data can be shared with an out-of-process COM server. However, to use DCOM (distributed COM) you must use out-of-process COM servers. DCOM allows you to run the COM server on a machine separate from the calling PC as if it were installed on the local PC.





In regards to C/C++ examples, I apologize, but I'm not a C/C++ developer and cannot answer this part of the question. The tools I use have ActiveX/COM wizards to generate shell declarations for my COM objects which I flesh out.


No comments:

Post a Comment