Does anyone know how to access a C# assembly from Borland C++

  • Thread starter Thread starter Curtis
  • Start date Start date
C

Curtis

I am in the process of migrating an existing project from
Borland C++ to C#. I don't want to just throw away all
the existing C++ code, so I need to be able to call C#
assemblies from Borland. I want all future development to
be done in C#. Does anyone know how I can accomplish
this???

Please help
 
Because .NET is practically a different operating system, it is much easier
to go the other way around. Write the main program in C# and have it call
C++ subroutines using PInvoke.
 
Because .NET is practically a different operating system
Not sure what you mean here, but .NET is in no way an OS.
Interop between C++ native code and C# or any managed language can be done using COM interop.

Willy.
 
Curtis said:
I am in the process of migrating an existing project from
Borland C++ to C#. I don't want to just throw away all
the existing C++ code, so I need to be able to call C#
assemblies from Borland. I want all future development to
be done in C#. Does anyone know how I can accomplish
this???

Please help

Actually, this can be achieved through some creative round tripping.
There is a paper on this site www.blong.com (click on the .net
interoperability with win32 link) that shows how. Note the paper is
using Delphi for .NET as an example, but would also work with C++

Cheers Tim.
 
Back
Top