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 C2491

'identifier' : definition of dllimport identifier not allowed

Data, static data members, and functions can be declared as dllimports but not defined as dllimports. The following sample generates C2491:

// function definition
void __declspec(dllimport) funcB() {   // C2491
}

// function declaration
void __declspec(dllimport) funcB();      // ok

void main() {
}