Click here to Skip to main content
15,905,785 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hello all,

I'm given the .c and .h file which was contained information of interfaces of COM object. The file was generated from the ATL template, Then i suppose to convert it into managed code for .net environment usage.
Anyone could give me some guidance or example or related link those can be shared, Just to get some opinion and comment. Thanks
Posted
Updated 23-Dec-10 1:11am
v2

1 solution

If you have the executable for that COM object all you really have to do is add a "Reference" to it in your project and VS will take care to produce a COM interop wrapper.

Hope that helps.

Cheers,

Manfred
 
Share this answer
 
Comments
Pdaus 23-Dec-10 20:45pm    
That's the problem...I don't have any executable for that COM object..:(
Manfred Rudolf Bihy 24-Dec-10 7:00am    
Ok, then my answer won't help you. Maybe you can find something on the net that would help with the generation of a COM wrapper from your interface definitions.
You might want to read this and the listed sub sections: It's all about "Advanced COM Interoperablity"
http://msdn.microsoft.com/en-us/library/bd9cdfyx.aspx

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900