views:

724

answers:

3

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....

A: 

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.

Matthew Flaschen
+1  A: 

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:

Groo
A: 

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.

avakar