This code works on my developement machine but not on clients machine.
I am getting error - run time error '53' File not found MDicInstallCheck.dll.
What the hell is this . MDicInstallCheck.dll is developed in VC (It can't be reffered from Project >> References).
My application's exe & MDicInstallCheck.dll are in the same directory.

VB Code:
  1. Private Declare Function MDicInstallCheck Lib "MDicInstallCheck.dll" (ByVal szCmdLine As String) As Boolean
  2.  
  3. Private Sub cmdCancel_Click()
  4.     Unload Me
  5. End Sub
  6.  
  7. Private Sub cmdOK_Click()
  8.     Dim strCmdLine As String
  9.     strCmdLine = Chr(34) & "{" & txtKey.Text & "}" & Chr(34) & " " & txtHide.Text
  10.    
  11.     If (MDicInstallCheck(strCmdLine)) Then
  12.         MsgBox "Registration Complete. Activated Installation", vbInformation, "MRecord 2004 PRO Release 3"
  13.         MsgBox "Thank You for Installing MRecord", vbInformation, "MRecord 2004 PRO Release 3"
  14.         End
  15.     Else
  16.         MsgBox "Invalid Entry, Try Again", vbExclamation, "MRecord Release 3 Setup"
  17.     End If
  18. End Sub
  19.  
  20. Private Sub Form_Unload(Cancel As Integer)
  21.     Shell (App.Path & "\PV.exe -k -f msiexec.exe")
  22.     MsgBox "Installation Aborted", vbInformation, "MRecord Professional Setup"
  23.     End
  24. End Sub