Results 1 to 7 of 7

Thread: [RESOLVED] DLL problems, have two dlls, want to be able to select between them

  1. #1

    Thread Starter
    Frenzied Member dinosaur_uk's Avatar
    Join Date
    Sep 2004
    Location
    Jurassic Park
    Posts
    1,098

    Resolved [RESOLVED] DLL problems, have two dlls, want to be able to select between them

    Hi there,

    I have two dll files, which i use to connect to a system.

    They are the same, but one is an earlier version and the other is later.

    I would like to be able to select which DLL file to use.

    But it does not allow me to..

    VB Code:
    1. Declare Function Connect Lib "di" (ByRef id As Integer) As Integer

    But both DLL files are named the same...

    any ideas?
    If you find my thread helpful, please remember to rate me

  2. #2
    PowerPoster Deepak Sakpal's Avatar
    Join Date
    Mar 2002
    Location
    Mumbai, India
    Posts
    2,424

    Re: DLL problems, have two dlls, want to be able to select between them

    specify the path for dll to use like this;

    Declare Function Connect Lib "c:\somefolder\di.dll" (ByRef id As Integer) As Integer

  3. #3

    Thread Starter
    Frenzied Member dinosaur_uk's Avatar
    Join Date
    Sep 2004
    Location
    Jurassic Park
    Posts
    1,098

    Re: DLL problems, have two dlls, want to be able to select between them

    Yeah, but I would like to change the path by changing a string, but it brings up an error saying string constant needed...
    If you find my thread helpful, please remember to rate me

  4. #4

    Thread Starter
    Frenzied Member dinosaur_uk's Avatar
    Join Date
    Sep 2004
    Location
    Jurassic Park
    Posts
    1,098

    Re: DLL problems, have two dlls, want to be able to select between them

    I am currently just renaming the files.
    If you find my thread helpful, please remember to rate me

  5. #5
    PowerPoster Deepak Sakpal's Avatar
    Join Date
    Mar 2002
    Location
    Mumbai, India
    Posts
    2,424

    Re: DLL problems, have two dlls, want to be able to select between them

    Declare Function Con1 Lib "c:\somefolder\di.dll" Alias "Connect" (ByRef id As Integer) As Integer

    Declare Function Con2 Lib "c:\anotherfolder\di.dll" Alias "Connect" (ByRef id As Integer) As Integer

  6. #6

    Thread Starter
    Frenzied Member dinosaur_uk's Avatar
    Join Date
    Sep 2004
    Location
    Jurassic Park
    Posts
    1,098

    Re: DLL problems, have two dlls, want to be able to select between them

    How do you get the version number of the DLL file?
    If you find my thread helpful, please remember to rate me

  7. #7
    PowerPoster Deepak Sakpal's Avatar
    Join Date
    Mar 2002
    Location
    Mumbai, India
    Posts
    2,424

    Re: DLL problems, have two dlls, want to be able to select between them

    Have not your problem solved yet.

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