Hi,
I'm porting a MAPI wrapper from the 1.x syntax to the 2.0 .net syntax and am
left with one error:
C3923: 'MyType::{ctor} ::_SPropTagArra y_myName' : local class, struct or
union definitions are not allowed in a member function of a managed class
The (abbreviated) code that generates this is:
MyType::MyType( ) // ctor
{
SizedSPropTagAr ray (3, myName) ;
}
With that code, the macro SizedSPropTagAr ray defines a new struct named
"_SPropTagArray _myName" with a 3-member array, which the new compiler rejects
because it's in a function.
I haven't tried it yet, but I'm assuming that moving the member up to class
level will solve the problem, but thought I'd see if anyone has come up with
a better solution?
Thanks,
Ken