Hi,
I have a class with a constructor which does some socket
initialisation. I need to call the constructor before the dll is
loaded. For this, I do something like this in the code (written in
C++):
wsa_startup SWS; //wsa_startup is the class.
This should ideally call the constructor of wsa_startup class. When I
compile it using VS.NET 2003 and generate the dll, it looks like the
global object is not being constructed at all. But when I compiled it
with VC6.0, the initialisation was being done. I also tried changing
the global object creation to static. This too didn't work.
I don't want to allocate memory here.
It would be appreciated if anyone would throw light on this !
thanks !