Best way to use unmanaged C++ from C#

  • Thread starter Thread starter jaha
  • Start date Start date
J

jaha

I'm currently building a gui in C# in which i'd like to use my
extensive library of C++ classes. Ideally keeping the inheritence tree
intact. Right now I'm wrapping each unmanaged C++ class with a managed
C++ class. Is this the best way to go about things? Or can I use IJW
somehow? Or something different entirely?

Thanks in Advance,
Robert Conde
 
I've had a similar problem. I can see two solutions:

1. You convert your library to managed c++. Might be a lot of work if we're
talking 100+ classes.

2. What I did was find the entry points into the unmanaged code library and
created wrappers that just wrapped those few classes.

Disclaimer: I am by no means an expert. :-)

I've done both, altho I did 1. the hard way with a very small set of classes
just as a test.

--Ola
 
Back
Top