Solved

com objects

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

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

Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
In this post we will learn different types of Android Layout and some basics of an Android App.
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 learn how to clear a vector as well as how to detect empty vectors in C++.

717 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