该OCX的控件有个函数
ShowMessage()
可以显示一个“Hello World”的对话框现在的问题是
我怎样来把这个OCX放到我的界面,比如Dialog上
以便这个“Hello World”的对话框可以显示出来呢?

解决方案 »

  1.   

    Project->Add To Project->Componets and Controls-〉选择你的".ocx"
    好像是这样。
      

  2.   

    但是说我的.OCX没有注册?
    怎么办?
      

  3.   

    我用这个注册啦DllRegisterServer in TmpOcx succeeded但是在别的程序里
    Project->Add to project->Components and Controls
    点中这个.ocx的时候
    会弹出一个对话框
    “The ActiveX Control is not registered properly,or
    its type library version number is incorrect
    Try registerint the control by removing and importing
    it in the Component Galley”不明白怎么回事了