|
-
Aug 30th, 2005, 03:42 AM
#1
Thread Starter
Frenzied Member
[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:
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 
-
Aug 30th, 2005, 05:01 AM
#2
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
-
Aug 30th, 2005, 05:05 AM
#3
Thread Starter
Frenzied Member
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 
-
Aug 30th, 2005, 05:12 AM
#4
Thread Starter
Frenzied Member
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 
-
Aug 30th, 2005, 05:16 AM
#5
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
-
Aug 30th, 2005, 05:42 AM
#6
Thread Starter
Frenzied Member
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 
-
Aug 30th, 2005, 06:09 AM
#7
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|