C++ DLL with C# application

O

Oleg

Hi All,

I've got some "solution" wrapped in DLL that was
implemented in C++, i.e. I've got some ready tested
classes.

Now I'm working on some project that is implemented in C#
and I'd like to use this DLL.

!!!!!!!!!!!!!!!!!!!!!!
!!!! The question: !!!
!!!!!!!!!!!!!!!!!!!!!!
Is it possible to use C++ classes (not managed code) in C#
application ?

Thanks in advance !
 
M

Mattias Sjögren

Is it possible to use C++ classes (not managed code) in C#
application ?

The short answer is yes, but not directly. You either have to export
them as COM objects and call them through COM interop, or provide a
MC++ wrapper.



Mattias
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top