Assembly initializer.

  • Thread starter Thread starter Ken Varn
  • Start date Start date
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
-----------------------------------
 
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
 
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
-----------------------------------
 
Back
Top