Edit

Share via


Compiler Error C3519

'invalid_param' : invalid parameter to embedded_idl attribute

A parameter was passed to the embedded_idl attribute of #import, but the compiler did not recognize the parameter.

The only parameters that are allowed for embedded_idl are emitidl and no_emitidl.

The following sample generates C3519:

// C3519.cpp
// compile with: /LD
[module(name="MyLib2")];
#import "C:\testdir\bin\importlib.tlb" embedded_idl("no_emitidcl")
// C3519
#import "C:\testdir\bin\importlib.tlb" embedded_idl("no_emitidl")
// OK