Differentiate normal DLL to COM DLL

Answer Posted / sunil choubey

COM DLL has to implement at least IUnknown inteface, however this is not the restriction of regulare DLL.

You have to register COM DLL by using regsvr32 utility, and its information is store in windows registry, this is not in case of normal DLL.

You have to put normal dll in path or current directory, but not in case of COM DLL.

You can use COM DLL in any language, but if you want to do it with normal dll then you have to export plan function, this should not be Object Oriented. If you try to export classes from normal DLL or make MFC extension then you cant use it in VB and scripting language like VB Script.

By making COM DLL you have to export its interface and write it in IDL file and in case of normal DLL you do it either in DEF file or using _declspec(export) with function or class name.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the use of com component in .net?

567


What is the difference between aggregated and contained objects?

543


What are queued components?

567


Define and explain about COM?

588


Which namespace do the classes, allowing you to support COM functionality, are located?

2071






Can I use com components from .net programs?

570


How to create an instance of the object in COM?

554


Suppose we have object B and aggregated object C (in- proc server), created by B. Can you access any interface of B from C?

561


What is dcom?

521


Once I have developed the com wrapper do I have to still register the com in registry?

636


How do we create dcom object in vb6?

663


Does .net replace com?

541


Can you explain what is dcom?

519


how to call a dll as a COM dll?

688


What is reference counting in com?

535