Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Accessing a DLL at a certain path, not in my program's directory

Status
Not open for further replies.

dseaver

IS-IT--Management
Jul 13, 2006
467
I'm using a DLL from a program a coworker wrote, and I want to access his DLL without copying it into my directory. Everytime I add his DLL as a reference, and try to run the program after moving it to the directory that it will reside in, it throws an exception that it cannot load the dll

Here's an example of what I am talking about
Code:
C:\Program Files\Program A\some.dll <--The DLL I use
C:\Program Files\Program B\My.exe <--My Program
                          \MyOther.dll
Is it possible to reference it without placing it in my directory? I am using VS2005
 
I think you can use regsvr32 or regasm to place the reference globally on the box. This causes some serious issues though if you have both a registered dll and a second copy of the dll in the directory.



 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top