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 C3320

'udt': UDT cannot have same the name as the module 'name' property

An exported user-defined type (UDT), which could be a struct, class, enum, union or __value, cannot have the same name as the parameter passed to the module attribute’s name property.

The following sample generates C3320:

#include "unknwn.h"
[module(name="xx")];

[export] struct xx {   // C3320. Rename the struct or value passed to the module's name property.
   int i;
};

void main() {
}