Sub main in a DLL

  • Thread starter Thread starter Marc Robitaille
  • Start date Start date
M

Marc Robitaille

Hello group,

I know how to add a Sub Main to an winform application and set the projet to
start with the added Sub Main method. I want to know if it is possible to do
the same thing with a DLL? I want to know if this is possible because I
want to know when the DLL is load in memory to log some informations in the
server event viewer.

Thank you
Marc R.
 
Marc Robitaille said:
Hello group,

I know how to add a Sub Main to an winform application and set the
projet to start with the added Sub Main method. I want to know if it
is possible to do the same thing with a DLL? I want to know if this
is possible because I want to know when the DLL is load in memory to
log some informations in the server event viewer.


Maybe the System.AppDomain.AssemblyLoad event helps. You get the current
domain from System.AppDomain.CurrentDomain.


Armin
 
Back
Top