-
Autorun in VB
Hello,
I want to make "CD - AutoRun" program in Visual Basic 6.
As you know, any VB application needs the file "msvbvm60.dll", this file needs "Oleaut32.dll".
I put the two files within my autorun program in the same folder. Autorun program seeks the
"msvbvm60.dll" file in the WinSys path, if it is not found there it seeks for it in the
current directory, this is good. "Msvbvm60.dll" seeks the "Oleaut32.dll" in the WinSys path
first, and the problem occurs if this file is older than that needed by "msvbvm60.dll",
when an error message appears telling that "file oleaut32.dll is out of date, need to be updated",
and Autorun can not start.
Can I make the the VB application "Autorun" seeks for required dlls in the current directory
first, then looking for them in WinSys path? or is there any other solution ?
Thanks,
Belal Marzouk
-
Are you sure VB seeks file first in WinSYS directory and then in the current directory. As far as I remember, it first looks into the current directory and then it looks into the WinSys directory.