The_Diamond_Z
January 21st, 2004, 10:50 AM
I'm writing a C++ class that will sit inside one or more non MFC, non ATL COM dll's.
I have requirement to read a file from the same location as the DLL (which will be hosted in the client's process but which is not likely to be in the same directory) but I don't have any ideas on how to find out that location.
I thought about hitting the registry via th CLSID but my boss objects to that.
What I really want is the path the client process's LoadLibrary used to load the dll.
Any ideas?
I have requirement to read a file from the same location as the DLL (which will be hosted in the client's process but which is not likely to be in the same directory) but I don't have any ideas on how to find out that location.
I thought about hitting the registry via th CLSID but my boss objects to that.
What I really want is the path the client process's LoadLibrary used to load the dll.
Any ideas?