Solved

First C++ COM Object

Posted on 2004-08-28
3
228 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
[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
  • 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Introduction This article is a continuation of the C/C++ Visual Studio Express debugger series. Part 1 provided a quick start guide in using the debugger. Part 2 focused on additional topics in breakpoints. As your assignments become a little more …
With most software applications trying to cater to multiple user needs nowadays, the focus is to make them as configurable as possible. For e.g., when creating Silverlight applications which will connect to WCF services, the service end point usuall…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
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.

628 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