How to integrate / mix managed and unmanaged code

there is a project already developed using its own code.
now in a small module for using SQLSMO in C ++ - CLI I used managed code.

How can I integrate encoded code with my own code?

+3
source share
3 answers

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

+2
source

. , MSDN. .

0

If you only need to access your managed class from an unmanaged application and not mind recompiling it into C ++ / CLI, you can use gcroot.

-1
source

Source: https://habr.com/ru/post/1707236/


All Articles