Tuesday, May 3, 2011

How to integrate/mix managed and unmanaged code

Hi there is project already devoloped using unmanaged code. now in a small module to use SQLSMO in C++ i hav used managed code.Now the problem is how to integrate manged code with unmaged code... can any body help me in this regard with small exampe... if u do this u help me a lot Thanks in advance....

From stackoverflow
  • This is a pretty general question. There are a wide variety of resources on this, including MSDN. Review the literature, and come back with a lot more specific questions.

  • There are several similar threads in Stack Overflow already. Keywords are P/Invoke and COM Interop, depending on the type of your native components. Here are some links:

  • If you only need to refer to your managed class from the unmanaged application, and don't mind recompiling it under C++/CLI, you can use gcroot.

0 comments:

Post a Comment