Solved

COM - component object model in managed/unmanaged context?

Posted on 2013-05-31
1
565 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

How Do You Stack Up Against Your Peers?

With today’s modern enterprise so dependent on digital infrastructures, the impact of major incidents has increased dramatically. Grab the report now to gain insight into how your organization ranks against your peers and learn best-in-class strategies to resolve incidents.

Question has a verified solution.

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

For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
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.

808 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