Results 1 to 10 of 10

Thread: Automation error---[RESOLVED]

Threaded View

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jul 2002
    Location
    UK
    Posts
    147

    Automation error---[RESOLVED]

    I am trying to call a procedure in a dll i have created, there are no errors i can see in the code but at runtime the error:

    Runtime error '-2147024770 (8007007e)'
    Automation error
    The specified module could not be found.

    is generated. WHY?

    APP Code:

    VB Code:
    1. Private WithEvents mobjThread As ThreadProxy.DataSearches
    2.  
    3. Private Sub cmdNew_Click()
    4.     Dim DBPath As String
    5.    
    6. 'On Error GoTo ErrHandler
    7.    
    8.     DBPath = "test"
    9.    
    10.     mobjThread.NewSearch DBPath, 1, True, 20, True
    11.  
    12.     Exit Sub
    13. 'ErrHandler:
    14. '    MsgBox "Error"
    15. End Sub

    Dll Code:
    VB Code:
    1. Public Sub NewSearch(ByVal sDBPath As String, ByVal sInt1 As Integer, ByVal sBool1 As Boolean, ByVal sInt2 As Integer, ByVal sBool2 As Boolean)
    2.  'do stuff
    3. End Sub
    Last edited by mik706; Jan 9th, 2004 at 11:09 AM.
    Mik706

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width