E
Ellen
Hi --
I'm writing a class library that needs to access files in the same
folder where the DLL will be installed.
I'm having problems retrieving that folder.
I have my DLL in c:\test\mytest.dll that exposes Class1, and a method
FindMe() that returns a string.
I have a console app to test it, which is c:\test\TestApp\TestApp.EXE.
It references mytest.dll. It instantiates a Class1 object and calls
FindMe().
In my DLL, all the System.Reflection.Assembly methods I try keep
returning c:\test\TestApp, rather than c:\test.
It gets even worse if I try to make a test from VB6 (using
CreateObject()), because then the path returned by FindMe() references
the GAC rather than c:\test1.
Are there *any* methods that will return the path where my DLL actually
lives?
Thanks in advance.
I'm writing a class library that needs to access files in the same
folder where the DLL will be installed.
I'm having problems retrieving that folder.
I have my DLL in c:\test\mytest.dll that exposes Class1, and a method
FindMe() that returns a string.
I have a console app to test it, which is c:\test\TestApp\TestApp.EXE.
It references mytest.dll. It instantiates a Class1 object and calls
FindMe().
In my DLL, all the System.Reflection.Assembly methods I try keep
returning c:\test\TestApp, rather than c:\test.
It gets even worse if I try to make a test from VB6 (using
CreateObject()), because then the path returned by FindMe() references
the GAC rather than c:\test1.
Are there *any* methods that will return the path where my DLL actually
lives?
Thanks in advance.