Results 1 to 4 of 4

Thread: DLL ref? What's wrong??

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Nov 1999
    Location
    Lost
    Posts
    216

    DLL ref? What's wrong??

    Hey...
    Lets say i have a DLL written in VB.
    This DLL is used as project reference in anoher Vb application.

    The problem is that once i move the DLL into another loction, the application wont work even if the DLL and EXE are in the same folder or if the DLL is in the system32 folder.
    It works only if the dll is in the same folder where it was compiled....

    How can i publish my application if i have this problem??

  2. #2
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: DLL ref? What's wrong??

    Have you registered the DLL using regsvr32?

    e.g. (At Run prompt)
    Code:
    regsvr32 PathToMyDLL.dll

  3. #3
    Junior Member
    Join Date
    Dec 2003
    Location
    London
    Posts
    16

    Re: DLL ref? What's wrong??

    Yeah, what penagate said....

    When you compile an activex DLL in vb6, it automatically registers the DLL in the location it is compiled in. By using the regsvr utility, the registry is updated with the new location of the DLL.

    If you make an install package and include your DLL, setup packages generally copy DLL's to the sys32 directory and automatically register them.

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    Nov 1999
    Location
    Lost
    Posts
    216

    Re: DLL ref? What's wrong??

    Oops i forgot ....

    10x

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