STL & C++ CLI

  • Thread starter Thread starter Frank Kuhn
  • Start date Start date
F

Frank Kuhn

Hi,

i need the fast power of STL and the connection to .NET and C#. I want to
use my C++ library in a C# Application. Does someone has the same problem?
And or has solved this Problem ?

If i use a non managed code i get an error, that i cand used a mixed type.

Thankx, Frank
 
Frank Kuhn said:
Hi,

i need the fast power of STL and the connection to .NET and C#. I want to
use my C++ library in a C# Application. Does someone has the same problem?
And or has solved this Problem ?

If i use a non managed code i get an error, that i cand used a mixed type.

You are probably trying to put a tracking handle (^, for example String^)
inside a native type, but tracking handles have to be where the garbage
collector can see them. Use gcroot to do that.
 
Back
Top