Re: how can i call C# method in c++ code?
- From: "Willy Denoyette [MVP]" <willy.denoyette@xxxxxxxxxx>
- Date: Tue, 7 Nov 2006 14:45:17 +0100
<kumarabhijit@xxxxxxxxx> wrote in message
news:1162906508.789090.141260@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
| Hi!
|
| Can anyone tell me how can i call C# method in c++ code?
|
| Thanks in advance!
|
| Regards
| Abhijit
|
You can't call a C# method from C++, at least not directly. You have two
options to call into managed code from unmanaged C++:
1. you expose your classs/methods as COM interfaces to be consumed by your
vc++ COM client, that is, you use COM interop.
2. You create a mixed native/managed C++ wrapper class using VS2005's
C++/CLI.
Detailed info can be found on MSDN, search for "C++ interop".
Willy.
.
- Follow-Ups:
- Re: how can i call C# method in c++ code?
- From: kumarabhijit@xxxxxxxxx
- Re: how can i call C# method in c++ code?
- References:
- how can i call C# method in c++ code?
- From: kumarabhijit@xxxxxxxxx
- how can i call C# method in c++ code?
- Prev by Date: Re: Type alias in C#
- Next by Date: Re: Parsing multipart/form-data stream
- Previous by thread: how can i call C# method in c++ code?
- Next by thread: Re: how can i call C# method in c++ code?
- Index(es):
Relevant Pages
|