?
Solved

com objects

Posted on 2004-08-27
3
Medium Priority
?
253 Views
Last Modified: 2013-11-25
Is it possible to create COM and DCOM objects using c++. I am not finding a documentation on the website. Every documentation given is given using VC++. Guide me where I can get an documentation.
0
Comment
Question by:rmvprasad
3 Comments
 
LVL 4

Accepted Solution

by:
computerg33k earned 150 total points
ID: 11917651
0
 
LVL 8

Expert Comment

by:boulder_bum
ID: 11918447
You can skip the docs:

1. Go to "Project->Add Reference...".
2. Choose the "COM" tab
3.  Select or browse to the COM object you want, then click OK.

That's all you need to do (it works for DCOM too).

When you add the reference, Visual Studio will create a Runtime Callable Wrapper (RCW) which will allow you to use the component just as you would any other. There is a bit of overhead involved, however, so it's best to use .NET classes where available of course.
0
 
LVL 2

Expert Comment

by:dimitry_dimitry
ID: 11920550
Windows API has enough APIs to manipulate COM objects even in raw C.
VC++ is preferred because of ATL library - Collections, strings, components wizards usually simplify life.
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

Make the most of your online learning experience.
Article by: evilrix
Looking for a way to avoid searching through large data sets for data that doesn't exist? A Bloom Filter might be what you need. This data structure is a probabilistic filter that allows you to avoid unnecessary searches when you know the data defin…
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.
Suggested Courses

864 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