CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Oct 2003
    Location
    Timisoara, Romania
    Posts
    460

    [RESOLVED] Problem accessing dll. Runtime error 53

    Hello all,
    I have a problem. I received a dll and some small vb code to exemplify the accessing of the dll, from a client. I put the app on a shared drive and the really weird thing is the application is working for me but only me. All other users get an runtime error 53: File not found.

    I have this declaration:
    Code:
    Public Declare Function SapLogin _
      Lib "TlsSapPdm.dll" _
      (ByVal SapSystem As String, ByVal LogFileName As String) _
      As Long
    And I get the error here:
    Code:
    SapHandle = SapLogin(SapHost, LogFile1)
    What could be the reason of the error? The dll file is in the same folder of the application. I don't have the dll on any system folder!
    You liked it? Please show your gratitude and rate it!

    There is no 'patch' for stupidity.

  2. #2
    Join Date
    Dec 2001
    Posts
    6,332

    Re: Problem accessing dll. Runtime error 53

    Might there be registry entries for the DLL? I've read about certain techniques for creating DLLs in which a registry entry is still required even though the DLL isn't being used as an AxtiveX component.

    The only other thought on this is perhaps there is some sort of permissions issue.
    Please remember to rate the posts and threads that you find useful.
    How can something be both new and improved at the same time?

  3. #3
    Join Date
    Oct 2003
    Location
    Timisoara, Romania
    Posts
    460

    Re: Problem accessing dll. Runtime error 53

    I found the problem. The dll that I received was calling librfc32.dll. I don't know from where but I had this one. I think from vb sp 5, not sure though. Anyway, putting this dll also in the applications path resolved the problem.
    Thank you Dependency Walker and you WizBang for trying to help!
    You liked it? Please show your gratitude and rate it!

    There is no 'patch' for stupidity.

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

Featured