Using third party dll in VS 2005

  • Thread starter Thread starter sajohn
  • Start date Start date
S

sajohn

Hi

I'm fairly new to VS2005 IDE and have come up with a problem I haven't
been able to solve yet. I created a dll that depends on a third party
dll. When I try to run my dll without the TP dll being the same
directory I get a "This application has failed to start because TP.dll
was not found. Re-installing the application may fix this problem"
error. How do I set up my IDE so when I run my dll it can find the TP
dll in the proper directory?


TIA

Steffen
 
In .Net (Not only VS 2005) all referenced dll's are automatically coppied to
the run directory of the starting application. They did this to overcome the
Pre-.Net "dll hell".

So now you no longer have to Reg32 your dlls they just have to be in the
same folder.

However, if this TP dll you are trying to use is a non-.Net assembly, you
could set a COM reference to it or even just brows to it. For COM dll's VS
generates a proxy in your run folder which executes the actual COM dll. If
you are not setting reference to it and using reflection, there are a couplle
of overrides that would allow you to enter the path to the dll you want to
run.

How are youo actually referencing this 3rd party dll?

David
 
Back
Top