Hi
I have an managed C++ dll, thats uses an API to handling some HW.
This DLL is then called from an C# dll.
But I need only once instance of the managed C++ dll, no matter how many
user application are starded, because I just whant one instance of my driver
handle (From the API)
Today, when I start a new application, I allso create and new instance of
the class, and there by create a new handle in my C++ dll.
1: Is there any DllMain alike i can use, either in my managed C++ or C# dll
?
2: Can I make something global and static in either C++ or C#, thats is
outside the classes, that I can initialize once, and then use in many
instance of the class ?
Thomas