Results 1 to 2 of 2

Thread: Autorun in VB

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Feb 2001
    Location
    Egypt
    Posts
    179

    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

  2. #2
    PowerPoster
    Join Date
    Aug 2000
    Location
    India
    Posts
    2,288
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width