Sub main in a DLL

  • Thread starter Marc Robitaille
  • 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.
 
A

Armin Zingler

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top