• 8325阅读
  • 0回复

qt的activex程序,编译无法找到idl文件 [复制链接]

上一主题 下一主题
离线wzx123
 
只看楼主 倒序阅读 楼主  发表于: 2008-12-18
— 本帖被 XChinux 从 General Qt Programming 移动到本区(2011-01-02) —
程序来源:C++ GUI Programming with Qt 4, Second Edition 第23章 bouncer程序,生成activex控件
程序环境:操作系统windows xp,编译环境vc2005, 使用qt4.3.1商业版
结果如下:提示找不到idl文件,我在debug目录下看了,没有这个文件,导致后续的生成dll和注册都失败了。

下边这些是编译打出的信息

debug\bouncer.idl

Couldn't load library file debug\bouncer.dll
Class has no metaobject information (error in debug\bouncer.dll)!
        midl debug/bouncer.idl /nologo /tlb debug/bouncer.tlb
Processing debug\bouncer.idl
bouncer.idl
c1 : fatal error C1083: 无法打开源文件:“debug\bouncer.idl”: No such file or di
rectory
midl : command line error MIDL1003 : error returned by the C preprocessor (2)
        c:\Qt\4.3.1\bin\idc.exe debug\bouncer.dll /tlb debug/bouncer.tlb
Couldn't open debug\bouncer.tlb for read
        c:\Qt\4.3.1\bin\idc.exe debug\bouncer.dll /regserver
Couldn't load library file debug\bouncer.dll
Failed to register server!
快速回复
限100 字节
 
上一个 下一个