Click here to Skip to main content
15,892,674 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: compilation errors when including both winsock.h && Ws2tcpip.h in my .cpp file. Pin
Nibu babu thomas13-Sep-06 23:30
Nibu babu thomas13-Sep-06 23:30 
GeneralRe: compilation errors when including both winsock.h && Ws2tcpip.h in my .cpp file. Pin
VCSharp00713-Sep-06 23:46
VCSharp00713-Sep-06 23:46 
QuestionUse [ShellExecute] to open a file in COM dll shell extension, CAN'T delete file after close it Pin
rockryan13-Sep-06 23:03
rockryan13-Sep-06 23:03 
QuestionPrinting a richt text file in console Pin
MarcoNedwig13-Sep-06 22:43
MarcoNedwig13-Sep-06 22:43 
QuestionCOPY CONSTRUCTORS and VIRTUAL DESTRUCTORS Pin
Subramaniam s.V.13-Sep-06 22:38
Subramaniam s.V.13-Sep-06 22:38 
AnswerRe: COPY CONSTRUCTORS and VIRTUAL DESTRUCTORS Pin
Nyarlatotep13-Sep-06 22:53
Nyarlatotep13-Sep-06 22:53 
AnswerRe: COPY CONSTRUCTORS and VIRTUAL DESTRUCTORS Pin
toxcct13-Sep-06 22:56
toxcct13-Sep-06 22:56 
AnswerRe: COPY CONSTRUCTORS and VIRTUAL DESTRUCTORS Pin
_AnsHUMAN_ 13-Sep-06 22:57
_AnsHUMAN_ 13-Sep-06 22:57 
Subramaniam s.V. wrote:
COPY CONSTRUCTORS

A copy constructor is used to copy the contents of one object to another. A copy constructor unlike the assignment operator is also responsible for creating the object alongwith the initialization.
Ex:
class sample
{

public:
sample()
{
}
sample(sample &s)
{
cout<<"In Copy Constructor:"<<endl;
}
};
void main()
{
="" sample="" s;
="" *s1="s;" copy="" constructor="" is="" called
="" s2(s);="" called="" in="" this="" case="" also
="" s3;
="" s3="s;" overloaded="" assignment="" called

}
="" a="" differs="" from="" an="" operator="" terms="" of="" creation="" object="" alongwith="" the="" initialization="" variable="" class.in="" there="" piece="" meal="" copying="" contents.
when="" we="" are="" using="" creating="" deep="" object.="" create="" shallow="" object.
so="" use="" constructor.
<blockquote="" class="FQ">
Subramaniam s.V. wrote:
VIRTUAL DESTRUCTORS.
We need virtual destructors to perform memory cleanup from derived class to the base class.

Somethings seem HARD to do, until we know how to do them.
Wink | ;-) _AnShUmAn_

AnswerRe: COPY CONSTRUCTORS and VIRTUAL DESTRUCTORS Pin
Hamid_RT15-Sep-06 7:09
Hamid_RT15-Sep-06 7:09 
QuestionHow to close a pop-up menu Pin
seanru13-Sep-06 22:36
seanru13-Sep-06 22:36 
AnswerRe: How to close a pop-up menu Pin
Nibu babu thomas14-Sep-06 0:27
Nibu babu thomas14-Sep-06 0:27 
AnswerRe: How to close a pop-up menu Pin
Iain Clarke, Warrior Programmer14-Sep-06 5:20
Iain Clarke, Warrior Programmer14-Sep-06 5:20 
GeneralRe: How to close a pop-up menu Pin
seanru25-Sep-06 23:01
seanru25-Sep-06 23:01 
GeneralRe: How to close a pop-up menu Pin
Iain Clarke, Warrior Programmer26-Sep-06 6:10
Iain Clarke, Warrior Programmer26-Sep-06 6:10 
QuestionException Handling Pin
Nyarlatotep13-Sep-06 22:34
Nyarlatotep13-Sep-06 22:34 
AnswerRe: Exception Handling Pin
Naveen13-Sep-06 23:03
Naveen13-Sep-06 23:03 
QuestionHow to screen the Esc-key-pressed event for a print preview view Pin
min_2_max13-Sep-06 22:12
min_2_max13-Sep-06 22:12 
Questionrich edit control query Pin
harsha_123413-Sep-06 21:39
harsha_123413-Sep-06 21:39 
AnswerRe: rich edit control query Pin
_AnsHUMAN_ 13-Sep-06 22:09
_AnsHUMAN_ 13-Sep-06 22:09 
GeneralRe: rich edit control query Pin
harsha_123413-Sep-06 22:19
harsha_123413-Sep-06 22:19 
GeneralRe: rich edit control query [modified] Pin
_AnsHUMAN_ 13-Sep-06 22:51
_AnsHUMAN_ 13-Sep-06 22:51 
GeneralRe: rich edit control query Pin
harsha_123413-Sep-06 23:05
harsha_123413-Sep-06 23:05 
AnswerRe: rich edit control query Pin
Cedric Moonen13-Sep-06 22:14
Cedric Moonen13-Sep-06 22:14 
GeneralRe: rich edit control query Pin
harsha_123413-Sep-06 22:40
harsha_123413-Sep-06 22:40 
AnswerRe: rich edit control query Pin
Akt_4_U13-Sep-06 22:28
Akt_4_U13-Sep-06 22:28 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.