ref class CFoo { public: ref struct FooStructure { int i; }; void Func(IFoo^ myI) { myI->Func(gcnew FooStructure()); } }; interface class IFoo { public: void Func(CFoo::FooStructure^ s); }; Writes the following: Function "IFoo::Func" cannot be called with the given argument list argument types are: (CFoo::FooStructure ^) object type is: IFoo ^ .
Um ... You can not transfer the structures belonging to classes in the methods of the interface?
^character in the interface declaration. - Alexander Petrov