Compiler Error C3371
Collapse the table of content
Expand the table of content
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer

Compiler Error C3371

Error Message

'idl_module': only the 'name' property is allowed here

idl_module usage directly on a function declaration cannot have any parameters other than name.

The following sample generates C3371:

// C3371.cpp
[idl_module(name="Name", dllname="Some.dll")];
[idl_module(name="Name", helpstring="Some help")]   // C3371
int f1();
// try
// [idl_module(name="Name")]
// int f1();

int main()
© 2015 Microsoft