Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Run-Time Error '53' File can not be found

Status
Not open for further replies.

mindlessclone2003

Technical User
Feb 13, 2003
12
US
I am having trouble running an API included w/ one of my software suites. Whenever I get to a function call I get the subjected error. I have tried moving the file into the system32 folder in (WINXP), and I've tried to register it but apparently it can't be registered. I have even tried specifying the entire path to the file to no avail. Anyone know of another fix for this problem? See below for the line of code giving me problems.

[Form]

Private Sub StartButton_Click()

VDRAPI.VdrOpenSession "IPADDR", "", "USER", "", 0#, "", 0#

End Sub

[API MODULE]

Declare Function VdrOpenSession Lib "vdrapi.dll" (ByVal whatServerToUse$, _
ByVal whoIsTheUser$, _
ByVal requestedRecipient$, _
ByVal proofOfIdentity$, _
ByVal traceThreshold&, _
ByVal assignedRecipient$, _
serverConnectionID&) As Long
 
Have you tried uninstalling it first using ....

regsvr32 vdrapi.dll -u

then reinstalling using ......

regsvr32 vdrapi.dll

What error message did you get when you tried to install it?
 
It's the way you're calling the function.

VDRAPI.VdrOpenSession

which implies VdrOpenSession is a method of a VDRAPI object. If this isn't a COM dll (can't be registered) then call the function exactly as you forward declared it.

VdrOpenSession "IPADDR", "", "USER", "", 0#, "", 0#

If vdrapi.dll isn't in the System folder, you'll have to give its full path/filename in the Lib clause.

Paul Bent
Northwind IT Systems
 
Ok, I have tried to uninstall and install the dll, and it tells me that it can not be registered. I attempted taking the "VDRAPI." out of my function call, with no avail. I do have a copy of the dll in the system folder, and in the folder where I am running the script, but still nothing...
 
Have you tried going to the Mobius web site for support?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top