程序来源: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!