Compiler Error C3369

 

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 C3369.

module name': idl_module already defined

The idl_module usage where you define the DLL can only occur once in a program.

The following sample generates C3369:

// C3369.cpp  
// compile with: /c  
[idl_module(name="name1", dllname="x.dll")]; // C3369  
[idl_module(name="name1", dllname="x.dll")];  

Show: