CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 6 of 6
  1. #1
    Join Date
    Oct 1999
    Location
    Bulgaria
    Posts
    132

    Call Managed code form Unmanaged app ?

    Hi All,
    How can I call Managed Code from simple unmanaged Win32 app. Is it possible. And what about opposite situation ? I mean call unmanaged code from .NET app. Please write example code.
    Thanks in advance ! Any answer would be appreciated.

    Best regards: dew


  2. #2
    Join Date
    Jun 1999
    Location
    Atlanta, GA USA
    Posts
    344

    Re: Call Managed code form Unmanaged app ?

    What you're asking for encompasses 30 page chapters. Can you be more specific about what you're looking for?

    Cheers,
    Tom Archer - CodeGuru
    Inside C# (early 2001)
    Teach Yourself Visual InterDev in 24 Hours

    ------
    Tom Archer, Archer Consulting Group Inc.
    Author - Inside C#, Visual C++.NET Bible, Extending MFC Apps with .NET
    http://www.ArcherConsultingGroup.com
    Consulting * Training * Custom Development * Enterprise Solutions

  3. #3
    Join Date
    Oct 1999
    Location
    Bulgaria
    Posts
    132

    Re: Call Managed code form Unmanaged app ?

    Hi,
    Thanks for reply. I'm looking for information about such problem. I didn't mean immediately decision of my question. I know that this problem is too large for few rows answer, so I'll be very appreciated if you tell me where I can find essential information about calling managed code from unmanaged app and reverse case. Thanks in advance !

    Best regards: dew


  4. #4
    Join Date
    Jun 1999
    Location
    Atlanta, GA USA
    Posts
    344

    Re: Call Managed code form Unmanaged app ?

    I'm posting an article this evening from Aravind Corera that is a wonderful tutorial on using COM components from .NET C# applications. Aravind contributed mightily to the COM interop chapter in my "Inside C#" book so he definitely knows his stuff.

    The URL of this article is http://www.codeguru.com/cominterop/U...OMInterop.html. As I said, it's not posted right now, but will be this evening.

    Cheers,
    Tom Archer - CodeGuru
    Inside C# (early 2001)
    Teach Yourself Visual InterDev in 24 Hours

    ------
    Tom Archer, Archer Consulting Group Inc.
    Author - Inside C#, Visual C++.NET Bible, Extending MFC Apps with .NET
    http://www.ArcherConsultingGroup.com
    Consulting * Training * Custom Development * Enterprise Solutions

  5. #5
    Join Date
    Oct 1999
    Location
    Bulgaria
    Posts
    132

    Re: Call Managed code form Unmanaged app ?

    Thanks a lot for help.
    It's a very good post.
    Take care for you.

    Best regards: dew


  6. #6
    Join Date
    Mar 2001
    Posts
    4

    Re: Call Managed code form Unmanaged app ?

    I'm not so good with c# but what i found out is that if you don't want to encapsulate a class within a Com component and call it from your managed code, you should create a C++ Managed Class Library and use it as an interface to your unmanaged code


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