你的class 的 instancing 的值 不能为 private

解决方案 »

  1.   

    我用的是public呀,程序说是没找到入口呀
      

  2.   

    我也做过几个dll,不过没遇到过这个问题。
      

  3.   

    现举例说明我把下面的函数做成.dll文件
       Public Function intAND(ByVal a As Integer, ByVal b As Integer) As Integer
         intAND = a + b
       End Function
      在模块声明
       Declare Function intAND Lib "and.dll" (ByVal a As Integer, ByVal b As Integer) As Integer
      窗体中调用
       Private Sub Command1_Click()
         Dim x As Integer
         Dim y As Integer
         x = Text1.Text
         y = Text2.Text
         Text3.Text = intAND(x, y)
       End Sub
     出现下面提示
      找不到dll入口点...
     有什么毛病,出在哪?请指点。定重谢
      

  4.   

    设置类模块的 "instancing"!!!!
      

  5.   

    怎么可能
    VB不能做API式的DLL
    只能做ActiveX DLL
      

  6.   

    朋友我做的就是ActiveX DLL
    可我怎么试着设置类模块"instancing"都不行的
    请朋友你简单试运行一下,告诉我怎么设吧,多谢了!
      

  7.   

    不能用 Declare Function ...
    从工程-引用 应用你的dll
    然后
    dim x as new yourclass
    x.functionX(...)
      

  8.   

    同意 zhp80(zhp80) 的说法。
      

  9.   

    VB只能做ActiveX DLL,这种库应该 工程-引用 到你的应用程序,
    而标准的DLL才能用像调用API样调用.