Hi:

I can't find any references to the ability to call a legacy DLL that
exports a standard C++ object API.

Assume you have a legacy .DLL that exports some good old fashion C++
classes, so it has a true C++ object API, not just a C API.  Assume
further that this .DLL does not have a COM interface.

Can the objects in this .DLL be used by a .NET assembly (managed C++ or
other language)?  If it had a COM interface, it would be trivial.  If it
had a C API, it would be pretty easy using the P/Invoke stuff.  If I were
free to take the source code from the DLL and wrap that into a .NET
assembly using managed extensions, that would probably be pretty
straightforward, although I expect there are some restrictions.  But I
can't find any information on how to just use the C++ objects from the
legacy DLL as-is.

Thanks!

Reply via email to