|
-
Nov 26th, 2002, 06:49 AM
#1
Thread Starter
Fanatic Member
Use One DLL in preference to Another? (* !RESOLVED! *)
Hi All,
Does anybody know of a way in VB to use one DLL in preference to another?
I.E. There is a version of MyExample.DLL on the PC, registered etc and sitting in "C:\WINNT\System32".
Now I Install my application and put another version of the MyExample.DLL in the same dirtectory as the EXE, but I don't register it...
Is there anyway to get my EXE to use the "local" version of the DLL, rather than the one in "C:\WINNT\System32"?
I know this is possible in other languages, just not sure about vb?
Last edited by Leather; Nov 26th, 2002 at 07:02 AM.
Leather Face is comin...
MCSD
-
Nov 26th, 2002, 06:52 AM
#2
I believe it's possible with VB.NET and the MS .NET Framework, but with VB 6, I don't think it's possible, except if you application unregisters one DLL, and then registers the one you want to use...
Although don't quote me on that...
Woka
-
Nov 26th, 2002, 07:00 AM
#3
Thread Starter
Fanatic Member
-
Nov 26th, 2002, 07:08 AM
#4
Frenzied Member
Just hard to find on MSDN..
So post the link while it's in your history file or we'll all have to go thrpugh this process if we want to know the answer...
-
Nov 26th, 2002, 07:12 AM
#5
Thread Starter
Fanatic Member
Sorry, but its from my local MSDN installation..
If you want to know the answer I can just tell you, its that simple...
Leather Face is comin...
MCSD
-
Nov 26th, 2002, 07:12 AM
#6
Oy southern shandy drinking, can I have an cocktail umbrella in my pint, essex bloke, why don't you just post the link anyways...? 
Hehehehe
Woka
-
Nov 26th, 2002, 07:15 AM
#7
Originally posted by Leather
Sorry, but its from my local MSDN installation..
If you want to know the answer I can just tell you, its that simple...
Bad Leather...*SLAP*

Woka
-
Nov 26th, 2002, 07:16 AM
#8
Addicted Member
Post it please.
serve the purpose of the forum dude.
ciao,
Nihar
VB 6 Enterprise SP5;
SQL Server 2000
-
Nov 26th, 2002, 07:18 AM
#9
Fanatic Member
Originally posted by Leather
Sorry, but its from my local MSDN installation..
If you want to know the answer I can just tell you, its that simple...
Well while its just that simple, you should tell everyone anyway.
So..
I would like to know how its done, could you please post how its done, thank you
-
Nov 26th, 2002, 07:19 AM
#10
Thread Starter
Fanatic Member
-
Nov 26th, 2002, 07:25 AM
#11
Addicted Member
Aaargh.... and i thought he had a solution for wint9x/NT.
ciao,
Nihar
VB 6 Enterprise SP5;
SQL Server 2000
-
Nov 26th, 2002, 07:28 AM
#12
Thread Starter
Fanatic Member
Sorry nihar, it may work on those platforms, its just this is the only one mentioned in the article, and the one I'm currently using...
Of course if this is part of COM+ then it will only work on 2000 and XP..
Leather Face is comin...
MCSD
-
Nov 26th, 2002, 07:29 AM
#13
-
Nov 26th, 2002, 07:49 AM
#14
Addicted Member
Originally posted by Leather
Sorry nihar, it may work on those platforms, its just this is the only one mentioned in the article, and the one I'm currently using...
Of course if this is part of COM+ then it will only work on 2000 and XP..
Its ok dude. i shud have guessed it. i expected a miracle
Originally posted by Wokawidget
Yea...What about NT?! Grrrrrrrrrrrrrrrrr.
yes what abt it? dis method wont work on NT as well.
PS- the extra content in this thread is way 2 sensible stuff.
ciao,
Nihar
VB 6 Enterprise SP5;
SQL Server 2000
-
Nov 26th, 2002, 07:55 AM
#15
Let me in ..
Originally posted by Leather
Oi less of it Wokawidget you northern car theif, wheres your KAPPA tracksuit?
How do you know I have cocktail umbrellas in my drinks! hehe
Ok, the solution is...
Install your exe and all of its dlls into the same DIR. DO NOT REGISTER THE DLL's.
Create an empty file in the same directory with the same name as your exe, including the extension, and add ".Local" to the end of its name.. e.g. "MyApp.Exe.Local"
Now windows 2000 will check for a .local file when starting an EXE, if one is found it uses local DLL's in preference to registered ones.
Thats pretty cool. Thanks
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
|