creating com classes from .NET

  • Thread starter Thread starter vipin
  • Start date Start date
V

vipin

Hi,
I have created c# code using wsdl.exe from a wsdl
file. But I want to use the functionality from c/c++ code.
Is it possible to convert the c# code to COM classes or
something similar which can be used from c/c++.

thank you
vipin
 
Hi,
Do I need to run the regasm.exe to register the c#
(.NET) dll and then use the tlbexp.exe to export the type
library to be used in the c/c++ code?Can you point me to
a sample application instead of article, so I can do the
same steps?
thank you
vipin
-----Original Message-----
Vipin,

You can take your .NET types and export them to COM. Check out the
section of the .NET framework developer's guide titled "Exposing .NET
Framework Components to COM" located at (watch for line wrap):
url=/library/en-
us/cpguide/html/cpconexposingnetframeworkcomponentstocom.as
p

Hope this helps.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Hi,
I have created c# code using wsdl.exe from a wsdl
file. But I want to use the functionality from c/c++ code.
Is it possible to convert the c# code to COM classes or
something similar which can be used from c/c++.

thank you
vipin


.
 
Vipin,

Yes, you will have to run regasm.exe to register the type, and then use
TLBEXP to get a type library that can be bound to. Beyond that, there isn't
much that isn't in the article that was linked to that you have to do. Most
everything else is dependent on how you attribute and design your classes.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

vipin said:
Hi,
Do I need to run the regasm.exe to register the c#
(.NET) dll and then use the tlbexp.exe to export the type
library to be used in the c/c++ code?Can you point me to
a sample application instead of article, so I can do the
same steps?
thank you
vipin
-----Original Message-----
Vipin,

You can take your .NET types and export them to COM. Check out the
section of the .NET framework developer's guide titled "Exposing .NET
Framework Components to COM" located at (watch for line wrap):
url=/library/en-
us/cpguide/html/cpconexposingnetframeworkcomponentstocom.as
p

Hope this helps.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Hi,
I have created c# code using wsdl.exe from a wsdl
file. But I want to use the functionality from c/c++ code.
Is it possible to convert the c# code to COM classes or
something similar which can be used from c/c++.

thank you
vipin


.
 
Back
Top