Solved

com objects

Posted on 2004-08-27
3
219 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 50 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

This article will show, step by step, how to integrate R code into a R Sweave document
When we want to run, execute or repeat a statement multiple times, a loop is necessary. This article covers the two types of loops in Python: the while loop and the for loop.
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.
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

821 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