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 C2492

'variable' : 'thread' data may not have dll interface

The variable is declared with the thread attribute and with DLL interface. The address of the thread variable is not known until run time, so it cannot be linked to a DLL import or export. The following sample generates C2492:

class C {
public:
   char   ch;
};

__declspec(dllexport) __declspec(thread) C c_1;   // C2492
// try ...
// __declspec(thread) C c_1;

void main() {
}