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!

Fatal Error C1022

expected #endif

An #if, #ifdef, or #ifndef directive has no matching #endif directive. Be sure each #if, #ifdef, or #ifndef has a matching endif. The following sample generates C1022:

#define   true 1

#if (true)

#else 

#else   // C1022
// replace the else with endif
// #endif

void main() {
}