CLI wrapper with stl in native class

22/02/2008 - 11:19 von AnFa | Report spam
I write for a native C++ class a wrapper in CLI/C++. This native class use a
inheritence from the STL vector with a self defined type. E.g.

class NativeClass : protected vector<AnotherNativeClass *>
{...}

During debugging I can see that the assignement between managed heap and
unmanaged heap does not work proper. My question is that construct general
supported? Or to I have to make modification in the native class? Thanks for
cooperation. Andreas
 

Lesen sie die antworten

#1 Jochen Kalmbach [MVP]
22/02/2008 - 11:33 | Warnen spam
Hi AnFa!
I write for a native C++ class a wrapper in CLI/C++. This native class use a
inheritence from the STL vector with a self defined type. E.g.

class NativeClass : protected vector<AnotherNativeClass *>
{...}

During debugging I can see that the assignement between managed heap and
unmanaged heap does not work proper.



There is no managed heap involved... so there should be no problem...
Can you provide a full working example?

By the way: This is a german newsgroup. For english newsgroups see:
microsoft.public.dotnet.languages.vc

Greetings
Jochen

My blog about Win32 and .NET
http://blog.kalmbachnet.de/

Ähnliche fragen