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 C3401

'structure': cannot resolve export

You attempted to use the export attribute to export an illegal structure. For example, the following code generates C3401:

[emitidl];
[module(name=xxx)];
typedef int IID;
[export] struct StructUnion {
   IID *riidPre;
   union Union {
      [iid_is(riidPre)]  IUnknown * pvObjectPre;
      [iid_is(riidPost)] IUnknown * pvObjectPost;
   };
   IID *riidPost;
};

int main() 
{
return(0); 
}