CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: simple question

  1. #1
    Join Date
    Mar 2000
    Posts
    24

    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 !

  2. #2
    Join Date
    Dec 2000
    Location
    Slovakia
    Posts
    1,043
    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
  •  





Click Here to Expand Forum to Full Width

Featured