首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > C++ Builder >

请问一下BCB2007里建OCX控件的正确方法

2012-03-03 
请教一下BCB2007里建OCX控件的正确方法?大家好:我是这样做的,1。新建一ActiveX Libaray项目2。新建四个Avtiv

请教一下BCB2007里建OCX控件的正确方法?
大家好:
  我是这样做的,
  1。新建一ActiveX Libaray项目
  2。新建四个AvtiveX Form和一Frame
  3。 引入一个别人写好的.H件和一个.CPP文件
  4。加入代码
  5。编译就报如下的错误。(开始以为我不小心改到哪里的,可我重做几次都不一,并没有修改到什么)

[BCC32 Error] MeetingFrmImpl.h(21): E2303 Type name expected
[BCC32 Error] MeetingFrmImpl.h(22): E2289 __published or __automated sections only supported for VCL classes
[BCC32 Error] MeetingFrmImpl.h(77): E2312 'TActiveForm' is not an unambiguous base class of 'TMeetingFrm'
[BCC32 Error] MeetingFrmImpl.h(87): E2303 Type name expected
[BCC32 Error] MeetingFrmImpl.h(87): E2275 { expected
[BCC32 Error] MeetingFrmImpl.h(87): E2029 'TMeetingFrmImpl' must be a previously defined class or struct
[BCC32 Error] MeetingFrmImpl.h(87): E2015 Ambiguity between 'MeetingFrm' and 'Meetingcontrolx_tlb::MeetingFrm'
[BCC32 Error] MeetingFrmImpl.h(154): E2293 ) expected
[BCC32 Error] MeetingFrmImpl.h(103): E2451 Undefined symbol 'm_VclCtl'
[BCC32 Error] MeetingFrmImpl.h(122): E2316 'Lock' is not a member of 'TMeetingFrmImpl'
[BCC32 Error] MeetingFrmImpl.h(122): E2268 Call to undefined function 'InternalQueryInterface'
[BCC32 Error] MeetingFrmImpl.h(123): E2268 Call to undefined function 'VCL_CONTROL_COM_INTERFACE_ENTRIES'
[BCC32 Error] MeetingFrmImpl.h(123): E2108 Improper use of typedef 'IMeetingFrm'
[BCC32 Error] MeetingFrmImpl.h(124): E2141 Declaration syntax error
[BCC32 Error] MeetingFrmImpl.h(124): E2139 Declaration missing ;
[BCC32 Warning] MeetingFrmImpl.h(124): W8070 Function should return a value
[BCC32 Error] MeetingFrmImpl.h(137): E2316 'm_sizeExtent' is not a member of 'TMeetingFrmImpl'
[BCC32 Error] MeetingFrmImpl.h(137): E2040 Declaration terminated incorrectly
[BCC32 Error] MeetingFrmImpl.h(137): E2139 Declaration missing ;
[BCC32 Warning] MeetingFrmImpl.h(137): W8070 Function should return a value
[BCC32 Error] MeetingFrmImpl.h(147): E2257 , expected
[BCC32 Error] MeetingFrmImpl.h(147): E2451 Undefined symbol 'VclComBase'
[BCC32 Error] MeetingFrmImpl.h(147): E2451 Undefined symbol 'convert'
[BCC32 Error] MeetingFrmImpl.h(147): E2303 Type name expected
[BCC32 Error] MeetingFrmImpl.h(147): E2377 If statement missing )
[BCC32 Error] MeetingFrmImpl.h(147): E2054 Misplaced else
[BCC32 Error] MeetingFrmImpl.h(147): E2451 Undefined symbol 'VclComBase'
[BCC32 Error] MeetingFrmImpl.h(147): E2451 Undefined symbol 'convert'
[BCC32 Error] AddFrmImpl.h(19): E2303 Type name expected
[BCC32 Error] AddFrmImpl.h(20): E2289 __published or __automated sections only supported for VCL classes
[BCC32 Error] AddFrmImpl.h(30): E2312 'TActiveForm' is not an unambiguous base class of 'TAddFrm'
[BCC32 Error] AddFrmImpl.h(42): E2303 Type name expected
[BCC32 Error] AddFrmImpl.h(42): E2275 { expected
[BCC32 Error] AddFrmImpl.h(42): E2029 'TAddFrmImpl' must be a previously defined class or struct
[BCC32 Error] AddFrmImpl.h(42): E2015 Ambiguity between 'AddFrm' and 'Meetingcontrolx_tlb::AddFrm'
[BCC32 Error] AddFrmImpl.h(109): E2293 ) expected
[BCC32 Error] AddFrmImpl.h(58): E2451 Undefined symbol 'm_VclCtl'
[BCC32 Error] AddFrmImpl.h(77): E2316 'Lock' is not a member of 'TAddFrmImpl'
[BCC32 Error] AddFrmImpl.h(77): E2268 Call to undefined function 'InternalQueryInterface'
[BCC32 Error] AddFrmImpl.h(78): E2108 Improper use of typedef 'IAddFrm'
[BCC32 Error] AddFrmImpl.h(79): E2141 Declaration syntax error
[BCC32 Error] AddFrmImpl.h(79): E2139 Declaration missing ;
[BCC32 Warning] AddFrmImpl.h(79): W8070 Function should return a value
[BCC32 Error] AddFrmImpl.h(92): E2316 'm_sizeExtent' is not a member of 'TAddFrmImpl'
[BCC32 Error] AddFrmImpl.h(92): E2040 Declaration terminated incorrectly
[BCC32 Error] AddFrmImpl.h(92): E2139 Declaration missing ;
[BCC32 Warning] AddFrmImpl.h(92): W8070 Function should return a value
[BCC32 Error] AddFrmImpl.h(102): E2257 , expected


[BCC32 Error] AddFrmImpl.h(102): E2451 Undefined symbol 'VclComBase'
[BCC32 Error] AddFrmImpl.h(102): E2451 Undefined symbol 'convert'
[BCC32 Error] AddFrmImpl.h(102): E2303 Type name expected
[BCC32 Error] AddFrmImpl.h(102): E2377 If statement missing )
[BCC32 Error] AddFrmImpl.h(102): E2054 Misplaced else
[BCC32 Error] AddFrmImpl.h(102): E2451 Undefined symbol 'VclComBase'
[BCC32 Error] AddFrmImpl.h(102): E2228 Too many error or warning messages


希望高手能指导一下

非常感谢!!!


[解决办法]
可能是你添加的别人的文件有问题
[解决办法]
MeetingFrmImpl.h是你引入的别人的文件吗,从文件名上看貌似它应该和某个TForm或TFrame之类的东东关联。
从错误上看,貌似你没有在包含MeetingFrmImpl.h之前#include <vcl.h>
[解决办法]
引入的文件可能有问题.

热点排行