YvonneTsang
Programmer
I have a .NET dll that is registered for COM use(Regasm/gacutil). Inside here I need to read from a text file to get some settings for the application. The location of the text file can change(depending on where the application is installed). I am trying to determine how to get to my file location. I tried to just keep the file in the same location as the DLL but when the COM object is used it references c:\winnt\system32 not the real location of the DLL. I tried to use an environment variable and it gave me c:\%MyVar%\settings.text. I am soooooo stuck. Someone please help me.