[Visual Studio 2015/C++]错误C1083持续出现

TaisaP 2017-01-17 11:07:14
代码如下
#import "CConvert.dll" no_namespace

CConvert.dll存放在工程目录下、Debug文件夹和Release文件夹里面(总之就是我能复制的地方我都复制到了),但是就是持续出现错误。
C1083 无法打开类型库文件: “c:\users\公用-请及时添加自己的微软账户\documents\visual studio 2015\projects\运动会服务器\运动会服务器(win32)\cconvert.dll”: 加载类型库/DLL 时出错。
c:\users\公用-请及时添加自己的微软账户\documents\visual studio 2015\projects\运动会服务器\运动会服务器(win32)\里面确实有cconvert.dll啊怎么办。。。
...全文
956 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
向立天 2017-01-18
  • 打赏
  • 举报
回复
用绝对路径写到C盘根目录试试
三岁、就很帅 2017-01-18
  • 打赏
  • 举报
回复
项目-》属性-》链接器-》输入-》依赖性 添加 VC++目录里面 库目录 添加路径
赵4老师 2017-01-18
  • 打赏
  • 举报
回复
挪到非C盘上的非汉字且不带空格的文件夹下再试试? The #import Directive C++ Specific The #import directive is used to 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 <filename> [attributes] 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 (such 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 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 shown below. Angle-bracket form This form instructs the preprocessor to search for type library files along the paths shown below. The compiler will search in the following directories for the 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 used to include additional lines in a single #import statement. For example: #import “test.lib” no_namespace \ rename(“OldName”, “NewName”)
TaisaP 2017-01-18
  • 打赏
  • 举报
回复
现在的情况是,所有的dll都import不了!!大神求帮助!!!
oyljerry 2017-01-18
  • 打赏
  • 举报
回复
你这个dll是否为vs2015版本编译的com组件
阿源是少年 2017-01-18
  • 打赏
  • 举报
回复
vs2015就没安装成功过,vs2013就挺好

15,471

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC 进程/线程/DLL
社区管理员
  • 进程/线程/DLL社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧