By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,272 Members | 1,426 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,272 IT Pros & Developers. It's quick & easy.

Problems with global object creation ??

P: n/a

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

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 !
Jul 19 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.