473,406 Members | 2,378 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Problems with global object creation ??

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 !
Jul 19 '05 #1
0 1400

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: John Ruiz | last post by:
the constructor definition in my Global.asax.cs file contains (among other things) the following line: System.Diagnostics.Debug.WriteLine( "Global Constructor ran." ); when I run my web...
8
by: Vishwanathan Raman | last post by:
Hi I have a declared a static DataSet object SOBJ in Global.asax.I also have a localy defined DataSet LSOBJ in Global.asax which I am storing in Application State.Is there any technical...
0
by: pavana | last post by:
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...
0
by: pavana | last post by:
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.