COM - component object model in managed/unmanaged context?

Hi there;

I want to find out the COM - Component Object Model in managed/unmanaged code context. So is COM unmanaged? Can you explain this with a simple hello world example?

Regards.
LVL 12
jazzIIIloveAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
Jacques Bourgeois (James Burger)Connect With a Mentor PresidentCommented:
Yes, COM in unmanaged.

Managed code is code that cannot use pointers (addresses in memory), where memory is completely allocation and cleanup is completely managed by the framework.

Unmanaged code is code that use pointers to read and write into memory. It must request memory from Windows and release when it has finished working with it.

COM is entirely base on that concept although it is not always evident on the programmer's side, because that memory management is most often something done by the compiler. Visual Basic 6 programmers wrote COM applications and most of them do not even know what a pointer is. When a C++ programmer instantiate an object or use one of its member, he does not see the pointers either, but the compiler generate codes that use pointers.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.