?
Solved

com objects

Posted on 2004-08-27
3
Medium Priority
?
246 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
[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
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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
Simple Linear Regression
Introduction to Processes
Suggested Courses

649 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