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

Can I use .net components from com programs?

611


What is reference counting in com?

552


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

657


How do we create dcom object in vb6?

693


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

2100






What is dcom?

535


Explain Futures of COM?

576


How to create an instance of the object in COM?

575


What is the difference between aggregated and contained objects?

569


Suppose we have object b and aggregated object c (in- proc server), created by b. Can you access any interface of b from c? What?s the difference between aggregated and contained objects?

505


Define and explain about COM?

613


how to call a dll as a COM dll?

717


Is dcom dead?

625


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

584


Can you explain what is dcom?

543