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 C3700

'function' : you cannot define a method of a class that has come from an #import

You attempted to define a class method for a class that is available in your code via the #using directive statement.

The following sample generates C3700:

// creates a .dll
// compile with /com+ /LD /link /noentry
#using <mscorlib.dll>
__gc class A {
   public:
      void mf(){
      };
};

// compile with /com+ /c
#using <x1.dll>
void A::mf() {   // C3700
}

void main() {
}