Log in

View Full Version : using both 2.07 and 2.5 - problem


killingspree
25th January 2003, 19:30
if searched the forums and found out that you can indeed use both version on the same system.
now i made an extra copie of virtualdub and put the avisynth.dll in the folder as described in one of the threads in this forum. still virtualdub says that it doesn't know a FlipHorizontal filter. the other .dll (2.07) is still registered in the system! is this the problem?

regards
and thanks for your help!
steVe

WarpEnterprises
25th January 2003, 21:29
There is a standard search order for loading DLLs.
So when you simply put avisynth.dll in the directory of the application this is loaded first.
But take care as this is not very transparent.

killingspree
25th January 2003, 21:58
is there a way i can change this search order just for this virtualdub verison/exe-file?

thanks for your help
steVe

angelyote
25th January 2003, 22:12
I use the virtualdubmod directory to store my 2.5 plugins and the virtualdub directory to store my 2.07 plugins and then just change the name of the avisynth.dll depending on which version I want to use.

This works out nicely because you can load the plugins with short filenames (c:\progra~1\virtua~1\msharpen.dll) thus requiring you to change a single character to alter the directories your script points to.

Here are examples of extremely basic bat files you could leave on your desktop to automate the changes for you.

change-25.bat (make 2.5 the active avisynth.dll)
if exist c:\windows\system\avisynth-old.txt exit
cd c:\windows\system
rename avisynth.txt avisynth-old.txt
rename avisynth-new.txt avisynth.txt

change-207.bat (make 2.07 the active avisynth.dll)
if exist c:\windows\system\avisynth-new.txt exit
cd c:\windows\system
rename avisynth.txt avisynth-new.txt
rename avisynth-old.txt avisynth.txt

Dave

hanfrunz
25th January 2003, 22:35
Hi everyone,

i wrote this in an other thread before, but i think this is the better one...

you can use ONE simple batch file to switch between avisynth 2.5 and 2.07:

make a dir c:\switchAVS and put both versions of the avisynth.dll in the folder (first rename them to *.250 and *.207) then make a file named switchAvs.bat and copy and paste this:

--------------------START---------------------
@echo off
if exist c:\SwitchAVS\installed.250 goto install_207
if exist c:\SwitchAVS\installed.207 goto install_250

:install_207
copy c:\SwitchAVS\avisynth.207 c:\windows\system32\avisynth.dll > NUL
del c:\SwitchAVS\installed.250 >NUL
echo dummy > c:\SwitchAVS\installed.207
echo switched to version 2.07
pause
goto end

:install_250
copy c:\SwitchAVS\avisynth.250 c:\windows\system32\avisynth.dll >NUL
del c:\SwitchAVS\installed.207 >NUL
echo dummy > c:\SwitchAVS\installed.250
echo switched to version 2.50
pause
goto end

:end
-------------------------END------------------------

put a link on your desktop and be happy...

hanfrunz

scmccarthy
27th January 2003, 08:44
So when you simply put avisynth.dll in the directory of the application this is loaded first. is there a way i can change this search order just for this virtualdub verison/exe-file? OK, you guys, this default behavior cannot be changed because it is part of Windows: if a program needs a file, it looks in the directory it is in first, then searches all folders in the search path. Open a command window and type 'path' to see what is on the search path. So, if you put the 2.5 avisynth dll in the VirtualDubMod folder and the 2.07 version in the same folder that VirtualDub is in, each program can have their own avisynth.dll and neither program would need avisynth to be in the system folder.

Most people keep avisynth.dll 2.07 in the system32 or system folder and avisynth.dll 2.5 in the VirtualDubMod folder.

@hanfrunz&angelyote

I don't understand why you bother renaming the avisynth.dll when you can use both of them with the same name at the same time.

Stephen

smok3
28th March 2003, 13:18
@hanfrunz&angelyote

I don't understand why you bother renaming the avisynth.dll when you can use both of them with the same name at the same time.

Stephencos it is silly to be forced to use specific avisynth version with a specific app? (i guess there is more than vdub and vdubmod out there)

scmccarthy
29th March 2003, 05:45
cos it is silly to be forced to use specific avisynth version with a specific app? (i guess there is more than vdub and vdubmod out there) But you can put the default version in the system folder and the alternate version with whatever apps you want to use that one in each folder with the apps. Most of the time, there will only be a few apps involved.

Stephen