library or application name
-
In VB2005, I've done an application and a library that is used within the application. Both of them call a function that is placed in the library and that permits to write a message in the same logfile. I'd like to add the caller's name in the log file so each message in the log would have the source that has written the line. For example: appname.exe: error msg ... libname.dll: error msg ... Is there any way to retrieve the caller's name from within the function? Thanks in advance, Marc Soleda
... she said you are the perfect stranger she said baby let's keep it like this... Dire Straits
-
In VB2005, I've done an application and a library that is used within the application. Both of them call a function that is placed in the library and that permits to write a message in the same logfile. I'd like to add the caller's name in the log file so each message in the log would have the source that has written the line. For example: appname.exe: error msg ... libname.dll: error msg ... Is there any way to retrieve the caller's name from within the function? Thanks in advance, Marc Soleda
... she said you are the perfect stranger she said baby let's keep it like this... Dire Straits
Try
Application.ProductName
-
Try
Application.ProductName
No, it always returns the same name
... she said you are the perfect stranger she said baby let's keep it like this... Dire Straits
-
In VB2005, I've done an application and a library that is used within the application. Both of them call a function that is placed in the library and that permits to write a message in the same logfile. I'd like to add the caller's name in the log file so each message in the log would have the source that has written the line. For example: appname.exe: error msg ... libname.dll: error msg ... Is there any way to retrieve the caller's name from within the function? Thanks in advance, Marc Soleda
... she said you are the perfect stranger she said baby let's keep it like this... Dire Straits
-
Great, perfect.
... she said you are the perfect stranger she said baby let's keep it like this... Dire Straits