E
Elephant
Hello, quesion,
in a managed c++ class library I create a namespace ( MyNS ).
In namespace a struct ( MyStruct) and a class ( MyClass ).
public __value struct MyStruct{...};
public __gc class MyClass{...};
I get 2 errors that I don't understand:
In MyClass I make a member variable, which is a pointer to MyStruct:
MyNS::MyStruct* TestStruct;
but I get the following error: "cannot declare interior __gc pointer or
reference as a member of MyNS::MyClass".
What does this mean?
Also, I can't create memory with this pointer in a member function of the
class. Says it can't convert from __gc[] to __gc*.
Why not? I can do this with other types.
Any help appriciated.
in a managed c++ class library I create a namespace ( MyNS ).
In namespace a struct ( MyStruct) and a class ( MyClass ).
public __value struct MyStruct{...};
public __gc class MyClass{...};
I get 2 errors that I don't understand:
In MyClass I make a member variable, which is a pointer to MyStruct:
MyNS::MyStruct* TestStruct;
but I get the following error: "cannot declare interior __gc pointer or
reference as a member of MyNS::MyClass".
What does this mean?
Also, I can't create memory with this pointer in a member function of the
class. Says it can't convert from __gc[] to __gc*.
Why not? I can do this with other types.
Any help appriciated.