Solved

First C++ COM Object

Posted on 2004-08-28
3
221 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

As more and more people are shifting to the latest .Net frameworks, the windows presentation framework is gaining importance by the day. Many people are now turning to WPF controls to provide a rich user experience. I have been using WPF controls fo…
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 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 be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

920 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now