Solved

COM - component object model in managed/unmanaged context?

Posted on 2013-05-31
1
562 Views
Last Modified: 2013-06-16
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.
0
Comment
Question by:jazzIIIlove
1 Comment
 
LVL 40

Accepted Solution

by:
Jacques Bourgeois (James Burger) earned 500 total points
ID: 39213971
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

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question