H
HONOREDANCESTOR
Suppose I have a dll which might be installed in the directory c:
\MyClass\. I want to be able to find the path of this dll from
within the dll. In other words, I want a function that can return "c:
\MyClass". I cannot use Application.GetExecutablePath from within
the dll, because that gives me the path of the application that is
calling the dll.
This question was also asked on this forum back in 2002, and Microsoft
had no answer to it. Has any progress been made since? It is a
useful feature to have, because I want to distribute my dll with a
database that it writes to, and for it to write to the database, it
needs to know the path to that database, which should be a
subdirectory of the dll.
Thanks,
HA.
\MyClass\. I want to be able to find the path of this dll from
within the dll. In other words, I want a function that can return "c:
\MyClass". I cannot use Application.GetExecutablePath from within
the dll, because that gives me the path of the application that is
calling the dll.
This question was also asked on this forum back in 2002, and Microsoft
had no answer to it. Has any progress been made since? It is a
useful feature to have, because I want to distribute my dll with a
database that it writes to, and for it to write to the database, it
needs to know the path to that database, which should be a
subdirectory of the dll.
Thanks,
HA.