Solved

COM - component object model in managed/unmanaged context?

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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

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:…
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
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.

762 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now