J
Juli
Hello NG,
my DLL contains both managed and unmanaged code. I have problems with
a pointer declaration in a managed class
public __gc class MClass {
private:
WrappedClass __nogc * m_pM; //Syntax-Error!!!!
MClass() { m_pM = new WrappedClass(); }
~MClass() { delete m_pM; }
}
The WrappedClass is known to the Compiler since it is defined in the
same project and I also put an #include at the beginning of the file.
Now I get this error:
ManagedClass.cpp(18): error C2144: Syntax-Error: 'int' should
follow';'
(I tried to translate it, cause I have the German version)
Can anybody help me?
Thanks in advance,
Juli
my DLL contains both managed and unmanaged code. I have problems with
a pointer declaration in a managed class
public __gc class MClass {
private:
WrappedClass __nogc * m_pM; //Syntax-Error!!!!
MClass() { m_pM = new WrappedClass(); }
~MClass() { delete m_pM; }
}
The WrappedClass is known to the Compiler since it is defined in the
same project and I also put an #include at the beginning of the file.
Now I get this error:
ManagedClass.cpp(18): error C2144: Syntax-Error: 'int' should
follow';'
(I tried to translate it, cause I have the German version)
Can anybody help me?
Thanks in advance,
Juli