locked
MFC Interop RRS feed

  • Question

  • 1. I need to display my MFC CDialog to be called from within a .C# NET form class. How to do it....?!

    2. I have a member function in MFC class which I need to call from C#.NET to do a calculation. How to do it...?!


    - Rajesh K http://thoughtsontechies.blogspot.com/
    Thursday, April 7, 2011 9:41 AM

Answers

  • Hi Rajesh,

     

    Welcome to the MSDN forum!

     

    You can build a MFC dll, then P/Invoke it in C# application.

    More details, please refer to this thread or this thread and this blog.

     

    Have a nice day!


    Paul Zhou [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    • Marked as answer by Paul Zhou Monday, April 18, 2011 2:46 AM
    Monday, April 11, 2011 1:22 PM