[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?
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
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...
Re: DLL problems, have two dlls, want to be able to select between them
I am currently just renaming the files.
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
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?
Re: DLL problems, have two dlls, want to be able to select between them
Have not your problem solved yet.