Compiler Error C3519
Visual Studio 2015
The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.
The latest version of this topic can be found at 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
Show: