
Signature
-----------------------------------
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

Signature
Mattias Sjögren [C# MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
Ken Varn - 12 Jul 2006 14:12 GMT
I am using managed C++. Can I use a DllMain in C++ with the 1.1 Framework?

Signature
-----------------------------------
Ken Varn
Senior Software Engineer
Diebold Inc.
EmailID = varnk
Domain = Diebold.com
-----------------------------------
> Ken,
>
[quoted text clipped - 9 lines]
>
> Mattias