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 C3368

'function declaration' : invalid calling convention for IDL

You can only use the __stdcall or __cdecl calling conventions in an IDL file.

For example, the following sample will generate C3368:

[idl_module(name="Name", dllname="Some.dll")];

[idl_module(name="Name")]
int __fastcall f1();