-
C and C++ COM Object Interaction
I was wondering whether it is possible to write a C utility that would actually make use of a COM object created using C++. All I need to do is to use the methods exposed in the COM in a C console application.
Any help or direction for related articles is appreciated.
Thanks !
-
Technically, it might be possible but that's going to be a very, very difficult task. you need to know what the mangled named of the member functions are, you will also have to ensure that the objects are initialized and destroyed properly, and you will need to ensure that the code is completely exception free.
Danny Kalev
-
Thanks for the confirmation ! Can you please direct me towards some articles in this respect ? I mean, I searched over many technical forums and sites but was unable to stumble upon one that actually speaks about the steps involved or that has a sample code.
Thanks !
-
With respect to C -> C++ integration see: http://www.informit.com/guides/conte...lus&seqNum=180
The C++ Object Model (including the mangled names of functions) is discussed here: http://www.informit.com/guides/conte...lus&seqNum=195
As for COM -- MSDN would be a good starting point. You will also need to bear in mind that the exact implementation details vary from compiler to compiler because the Application Binary Interface of VC++ has changed several times.
Danny Kalev
Similar Threads
-
By Osiris43 in forum .NET
Replies: 1
Last Post: 08-04-2006, 12:15 PM
-
Replies: 9
Last Post: 03-27-2005, 02:14 PM
-
By kylemcna in forum ASP.NET
Replies: 1
Last Post: 02-22-2005, 10:12 PM
-
Replies: 7
Last Post: 10-24-2002, 06:33 AM
-
Replies: 0
Last Post: 08-06-2002, 12:46 PM
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Development Centers
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center
|