Assembly initializer.

K

Ken Varn

Is there anyway to write an assembly DLL that has an initializer that is
automatically called before any other methods in the assembly? I am
thinking along the lines of a DllMain similar to that which is in standard
C++ DLLs.


--
-----------------------------------
Ken Varn
Senior Software Engineer
Diebold Inc.

EmailID = varnk
Domain = Diebold.com
-----------------------------------
 
M

Mattias Sjögren

Ken,
Is there anyway to write an assembly DLL that has an initializer that is
automatically called before any other methods in the assembly? I am
thinking along the lines of a DllMain similar to that which is in standard
C++ DLLs.

The CLR supports such a feature starting with 2.0, but it also
requires language support. IL Assembler, and I believe also C++, lets
you define module initializers, but other languages such as C# and VB
do not.


Mattias
 
K

Ken Varn

I am using managed C++. Can I use a DllMain in C++ with the 1.1 Framework?

--
-----------------------------------
Ken Varn
Senior Software Engineer
Diebold Inc.

EmailID = varnk
Domain = Diebold.com
-----------------------------------
 

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

Top