473,396 Members | 2,030 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

creating com classes from .NET


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
Nov 15 '05 #1
3 1341
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):

http://msdn.microsoft.com/library/de...nentstocom.asp

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"vipin" <an*******@discussions.microsoft.com> wrote in message
news:02****************************@phx.gbl...

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

Nov 15 '05 #2
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 thesection of the .NET framework developer's guide titled "Exposing .NETFramework Components to COM" located at (watch for line wrap):
http://msdn.microsoft.com/library/default.asp? url=/library/en-
us/cpguide/html/cpconexposingnetframeworkcomponentstocom.as
p
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"vipin" <an*******@discussions.microsoft.com> wrote in messagenews:02****************************@phx.gbl...

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

.

Nov 15 '05 #3
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]
- mv*@spam.guard.caspershouse.com

"vipin" <an*******@discussions.microsoft.com> wrote in message
news:04****************************@phx.gbl...
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):

http://msdn.microsoft.com/library/default.asp?

url=/library/en-
us/cpguide/html/cpconexposingnetframeworkcomponentstocom.as
p

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"vipin" <an*******@discussions.microsoft.com> wrote in

message
news:02****************************@phx.gbl...

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

.

Nov 15 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Edvard Majakari | last post by:
Greetings, fellow Pythonistas! I'm about to create three modules. As an avid TDD fan I'd like to create typical 'use-cases' for each of these modules. One of them is rather large, and I wondered...
4
by: Altramagnus | last post by:
I have 30 - 40 type of different window. For each type I need about 20 instances of the window. When I try to create them, I get "Error creating window handle" My guess is there is a maximum...
4
by: Gonzalo Aguirre | last post by:
i have a classes diagram like this ------------ * ---------- | Vehicles | ------------------------- | Parking| ------------ vehicles ---------- ^ |...
8
by: Simon Edwards | last post by:
Something thats been bugging me for a while... how do you create a namespace that has many children (namespaces) I.e system.io.blah.blah Iv'e done it by creating a class which contains...
15
by: David Thielen | last post by:
Hi; My ASP.NET app (C# calling J# under .net 2.0) creates a png file in a subdirectory to display as part of the created page. However, the bitmap will not display due to a security violation. ...
1
by: Marcel Hug | last post by:
Hi NG ! I have already written a task about MVC and I tried to get the best informations together. I would like to implement the MVC pattern and it work on the way I did it. At first i know the...
17
by: Lee Harr | last post by:
I understand how to create a property like this: class RC(object): def _set_pwm(self, v): self._pwm01 = v % 256 def _get_pwm(self): return self._pwm01 pwm01 = property(_get_pwm, _set_pwm)
2
by: maykut | last post by:
Hi everybody! I have a problem with creating classes in a java source code.I don't know is it possible. creating an non-existing class and filling it with its constructor java source code?After all...
26
by: nyathancha | last post by:
Hi, How Do I create an instance of a derived class from an instance of a base class, essentially wrapping up an existing base class with some additional functionality. The reason I need this is...
31
by: JoeC | last post by:
I have read books and have ideas on how to create objects. I often create my own projects and programs. They end up getting pretty complex and long. I often use objects in my programs they are...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.