Results 1 to 3 of 3

Thread: DLLs

  1. #1
    Join Date
    Oct 2003
    Location
    US
    Posts
    343

    Unanswered: DLLs

    Does anybody konow how to check if a dll is already registered on a system. I want to check if a particular dll is registered before calling it. I'm using Access 2000.

    Any help would be highly appreciated.

  2. #2
    Join Date
    Nov 2003
    Posts
    1,487
    A Simple way would be to use error checking to do this.
    Code:
     Private MyFunction() As Long
       On Error Goto API_Not_Loaded
       GetObject Picture1.Image, Len(PicInfo), PicInfo
    
    Exit_MyFunction:
       Exit Function
    
    API_Not_Loaded:
       MsgBox"ERROR: GDI32.DLL Not Loaded"
       Resume Exit_MyFunction   
    End Function
    Or something like that.....

  3. #3
    Join Date
    Oct 2003
    Location
    US
    Posts
    343
    Thanks..will definitely try it out..

    Originally posted by CyberLynx
    A Simple way would be to use error checking to do this.
    Code:
     Private MyFunction() As Long
       On Error Goto API_Not_Loaded
       GetObject Picture1.Image, Len(PicInfo), PicInfo
    
    Exit_MyFunction:
       Exit Function
    
    API_Not_Loaded:
       MsgBox"ERROR: GDI32.DLL Not Loaded"
       Resume Exit_MyFunction   
    End Function
    Or something like that.....

Posting Permissions

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