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 C2562

'identifier' : 'void' function returning a value

The function is declared as void but returns a value.

Possible cause

Possible solutions

The following sample generates C2562:

void testfunc() {
   int i;
   return i;   // C2562, delete the return to resolve the error
}

int main() {
}