CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Aug 2001
    Posts
    51

    Question Mixing managed/unmanaged code

    Question about mixing managed/unmanaged code. A little background first:

    The core product for my company is developed using Borland. It has hooks in it to allow new functions to be added to it on the fly through DLLs (and you can't imagine the interface -- it has pointers to pointers to pointers).

    We have a client who wants us to connect to his server using a secure TCP/IP connection. Easily done, using OpenSSL. The client has come back and says they want us to use .Net SSL instead (I'm still looking into that) so they can maintain it.

    This implies to me managed code being called from unmanaged code. What I need to know is -- can mix these environments?

  2. #2
    Join Date
    Mar 2002
    Location
    St. Petersburg, Florida, USA
    Posts
    12,125
    If done carefully

    The easiest [ but not necessaryly the best ] is to use a COM interop layer.

    The biggest issue will be CAS. This is handled by the COM Interop layer pretty well, but you will have to handle it yourself if you decide to go for a more direct interface.
    TheCPUWizard is a registered trademark, all rights reserved. (If this post was helpful, please RATE it!)
    2008, 2009,2010
    In theory, there is no difference between theory and practice; in practice there is.

    * Join the fight, refuse to respond to posts that contain code outside of [code] ... [/code] tags. See here for instructions
    * How NOT to post a question here
    * Of course you read this carefully before you posted
    * Need homework help? Read this first

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