Solved

COM - component object model in managed/unmanaged context?

Posted on 2013-05-31
1
568 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
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…
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 be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

732 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