Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Altering dll reference from in exe in VB.Net Deployment

Altering dll reference from in exe in VB.Net Deployment

Scheduled Pinned Locked Moved Visual Basic
databasevisual-studiocsharpsysadmin
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    JayKhatri
    wrote on last edited by
    #1

    Hi Experts, I have developed a database driven software which requires few dll's that I have used in my project. When I created the Deployment project and deployed to my client with that. There was a problem with dll path. However I have fixed the same by creating a directory structure and placing dlls into that. Some dlls required to be placed in my application folder. However I had done and changed the same in my deployment project. But what if I don't want to place that dlls in my application directory and like to keep in windows\system and how would my exe be reference to a new path. That is my question. I hope you understood my problem. I am using VS 2005 IDE with vb.net Lang and MS-Access as DB. Thanks in advance. Jay Khatri

    D 1 Reply Last reply
    0
    • J JayKhatri

      Hi Experts, I have developed a database driven software which requires few dll's that I have used in my project. When I created the Deployment project and deployed to my client with that. There was a problem with dll path. However I have fixed the same by creating a directory structure and placing dlls into that. Some dlls required to be placed in my application folder. However I had done and changed the same in my deployment project. But what if I don't want to place that dlls in my application directory and like to keep in windows\system and how would my exe be reference to a new path. That is my question. I hope you understood my problem. I am using VS 2005 IDE with vb.net Lang and MS-Access as DB. Thanks in advance. Jay Khatri

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      If your .DLL's are COM-based, you added a Reference to them, you can put them anywhere. You just have to remember to register them with REGSVR32 when they are in their permanent location. If the .DLL's are library .DLL's, you get at the functions they expose with P/Invoke, the .DLL's have to either be in the directory that the .EXE is in or in a folder in the system's PATH environment variable.

      A guide to posting questions on CodeProject[^]
      Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
           2006, 2007, 2008
      But no longer in 2009...

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups