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 C2111

'+' : pointer addition requires integral operand

An attempt was made to add a nonintegral value to a pointer using the plus ( + ) operator. The following sample generates C2111:

void main() {
   int *a = 0, *pa = 0, b = 0;
   double d = 0.00;
   
   a = pa + d;   // C2111

   // try ...
   // a = pa + b;
}