NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Compiler Error C3352

'function' : the specified function does not match the Delegate type 'type'

The parameter lists for function and the delegate do not match.

The following sample generates C3352:

#using <mscorlib.dll>

__delegate int D(int, int);

__gc class C {
   public:
      int mf(int) {
         return 1;
      }

      /* use the following function definition to resolve the error
      int mf(int, int) {
         return 1;
      }
      */
};

void main() {
   C *pC = new C;

   System::Delegate *pD = new D(pC, &C::mf);   // C3352
}