Solved

First C++ COM Object

Posted on 2004-08-28
3
224 Views
Last Modified: 2013-11-25
Please help.  I am proficent in C# and the new microsoft .net framework, but I have to access a third part dll using com/interop with .net and I am unable to successfully get the results i need from using platform invoke and the third party dll does not provide a type library so I cannot use the type library importer tool.

I can however create all my logic in C++ and then create a RCW to allow me to acces my new object in C#, but I have never ever create a true c++ com object or dll and don't know where to begin.

Can someone please point me in the right direction whether it be books or web examples.  All I need is a simple example and I can move foreward.

Thanks

Jim
0
Comment
Question by:KCjim
  • 2
3 Comments
 

Author Comment

by:KCjim
ID: 11924148
One additional thing, this must be an UNMANAGED exmample as this third party dll is not at all complient with manged classes
0
 
LVL 55

Accepted Solution

by:
Jaime Olivares earned 50 total points
ID: 11924171
You will find lots of COM objects with source code in unmanaged C++ at codeproject.com:
http://www.codeproject.com/com/
There is a special "beginners" section inside.
Good luck,
Jaime.
0
 

Author Comment

by:KCjim
ID: 11924176
Thanks

Jim
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

IntroductionThis article is the second in a three part article series on the Visual Studio 2008 Debugger.  It provides tips in setting and using breakpoints. If not familiar with this debugger, you can find a basic introduction in the EE article loc…
For a while now I'v been searching for a circular progress control, much like the one you get when first starting your Silverlight application. I found a couple that were written in WPF and there were a few written in Silverlight, but all appeared o…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
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.

829 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