Home > Software engineering >  Visual Studio 2015/C error C1083 continue to appear
Visual Studio 2015/C error C1083 continue to appear

Time:10-05

The code below
 # import "CConvert. DLL" no_namespace 

CConvert. DLL in project directory, and Release the Debug folder folder (after all is the place where I can copy I copied to), but this error is continuous,
C1083: unable to open the type library file: "c: \ users \ public - please add your own account \ documents \ Microsoft visual studio 2015 games \ projects \ \ games server (win32) \ cconvert DLL" : an error occurred when loading type library/DLL,
C: \ users \ public - please add your own account \ documents \ Microsoft visual studio 2015 games \ projects \ \ games server (win32) \ do have cconvert inside. DLL ah what can I do,,,

CodePudding user response:

Now, all of the DLL cannot import!!!!! A great god for help!!!!!!

CodePudding user response:

Move to the C plate of Chinese characters and without Spaces folder to try again?


The # import Directive
C + + Specific

The # import directive is 2 incorporate information from a type library. The content of The type library is converted into c + + classes, mostly describing The COM interfaces.

Syntax

# import "filename" [attributes]

# import & lt; filename> [the attributes]

The attributes:

Attribute1, attribute2,...

Attribute1 attribute2...

Filename is the name of the file containing the type library information. A file can be one of the following types:

A type library (. TLB or. ODL) file


An executable (.exe) file


. A library (DLL) file containing a type library resource (to the as. OCX)


A compound document holding a type library


Any other file format that can be understood by the LoadTypeLib API
The filename is optionally preceded by a directory specification. The filename must name an existing file, The difference between The two forms is The order in which The preprocessor searches for The type library files when The path is incompletely specified.

Syntax Form Action
Quoted form This form instructs the preprocessor to first look for the type library files in the same directory of the file that contains the # import statement, and then in the directories of whatever files that include (# include) that file. The preprocessor then searches along the paths to.
Angle - bracket form This form instructs the preprocessor to search for the type library files along the paths to.


The compiler will search in The following directories for a named file:

The PATH environment variable PATH list


The LIB environment variable path list


The path specified by the/I (additional include directories) compiler option
# import can optionally include one or more attributes. These attributes tell the compiler to modify the contents of the type - library headers. A backslash (\) symbol can be 2 include additional lines in A single # import statement. For example:

# import "test. The lib" no_namespace \
Rename (" OldName ", "NewName")

CodePudding user response:

Try using the absolute path to write C pan-gen directory

CodePudding user response:

Project - "attribute -" linker - "input -" dependencies
Vc + + directories inside library adding the directory path

CodePudding user response:

Vs2015 never successful installation, vs2013 is good

CodePudding user response:

You whether this DLL is vs2015 compiled version of the com component
  • Related