com
-
Hi, COM object is a binary file, and dll also binary file. what is difference between them (internally)? thanks koteswara
Think of things this way... You know how, in a C++ program, you have all sorts of objects, like CWinApp, CMyView, CMainFrame, etc.? These are all called "code-level" objects; that is, the only thing that knows about them is the program's source code. COM takes objects to the next level, that is, the "binary level." Think again of a class, but this time another executeable program instantiates it in memory and calls its methods and properties. Although this time, the object is not in your code, it's in the binary. DLLs are simply libraries of functions that are like the .LIB files we use for linking things statically, only this time, the linking happens "dynamically", or during run time :) Cheers, Brian Hart
-
Hi, COM object is a binary file, and dll also binary file. what is difference between them (internally)? thanks koteswara
Hi, COM object can be stored in the DLL or EXE file. When a COM object is stored in the DLL the only difference with the usual DLL file, is that the COM DLL must have several COM related methods: DllGetClassObject DllRegisterServer DllUnregisterServer DllCanUnloadNow See description of these functions in MSDN for more details... Regards, Alex Gorev, Dundas Software.