delphi 做一个OCX无窗体的(ActiveX Library)(100)

Discussion in 'ActiveX 控件' started by dqqqqqq, Dec 3, 2010.

  1. dq

    dqqqqqq New Member Member

    用delphi 做一个无窗体的OCX,用的是:ActiveX Library -> Automation Object Automation Object 中 Return Type 必须要用 HRESULT ?还有就是参数输出要选什么类型?
     
  2. xi

    xianjun New Member Member

    BSTR这些都是可以的,没有说一定要HRESULT吧。
     
  3. fe

    fengfan New Member Member

    返回参数是在参数列表中设置的.比如要返回string 应设置参数类型为 bstr* .modifer设置为out retval