|
-
December 3rd, 2002, 02:20 AM
#1
simple question
Hi there !
There is a little question and I hope that someone has the answer. How I can get an access to th C# code from C++ code ?
Thanks in advance !
-
December 3rd, 2002, 06:37 AM
#2
Do you mean Managed C++??? If so, just add reference to your C# project into the Managed C++ project. Then you are able to instantiate and use C# classis as if they are C++ classes...
If you don't mean Managed C++ then you don't have direct access to the C# code. You need to create COM object from you C# class and you can use that COM object from C++ code... For this solution look into the .NET Framework SDK Documentation at the section:
.NET Framework SDK --> Programming with the .NET Framework --> Interoperating with Unmanaged Code --> Exposing .NET Framework Components to COM.
Martin
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
|
Click Here to Expand Forum to Full Width
|