Fatal Error C1104

 

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 Fatal Error C1104.

fatal error importing libid: 'message'

The compiler detected a problem importing a type library. For example, you cannot specify a type library with libid and also specify no_registry.

For more information, see #import Directive.

The following sample will generate C1104:

// C1104.cpp  
#import "libid:11111111.1111.1111.1111.111111111111" version("4.0") lcid("9") no_registry auto_search   // C1104  

Show: