Solved

First C++ COM Object

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

When writing generic code, using template meta-programming techniques, it is sometimes useful to know if a type is convertible to another type. A good example of when this might be is if you are writing diagnostic instrumentation for code to generat…
After several hours of googling I could not gather any information on this topic. There are several ways of controlling the USB port connected to any storage device. The best example of that is by changing the registry value of "HKEY_LOCAL_MACHINE\S…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…

707 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

12 Experts available now in Live!

Get 1:1 Help Now