mixed types are not supported
Managed C++/CLI
4
Posts
2
Posters
0
Views
1
Watching
-
Hi, I need to use "not Managed C++/CLI class" in a Managed C++/CLI class. But I got the "not supported" error message. Is there a way to do following? -------------------------------------- class A (){}; public ref class B() { A a; <----- not supported } ------------------------- Thanks
-
Hi, I need to use "not Managed C++/CLI class" in a Managed C++/CLI class. But I got the "not supported" error message. Is there a way to do following? -------------------------------------- class A (){}; public ref class B() { A a; <----- not supported } ------------------------- Thanks
-
-
Just a guess, something like...
class A (){};
ref class B()
{
public:
IntPtr APtr;
}B ^b = gcnew B();
b->APtr = (IntPtr)new A();
A *a = (A*)b->APtr;Mark Salsbery :java: