Click here to Skip to main content
15,886,873 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Child control notification Pin
abhi_code20-Sep-05 3:55
abhi_code20-Sep-05 3:55 
AnswerRe: Child control notification Pin
David Crow20-Sep-05 5:57
David Crow20-Sep-05 5:57 
QuestionTo use dll classes Pin
honae20-Sep-05 2:59
honae20-Sep-05 2:59 
GeneralRe: To use dll classes Pin
prasad_som20-Sep-05 3:14
prasad_som20-Sep-05 3:14 
GeneralRe: To use dll classes Pin
honae20-Sep-05 4:02
honae20-Sep-05 4:02 
AnswerRe: To use dll classes Pin
honae20-Sep-05 3:37
honae20-Sep-05 3:37 
AnswerRe: To use dll classes Pin
Alexander M.,20-Sep-05 8:42
Alexander M.,20-Sep-05 8:42 
QuestionA Bug in the land of construction??? Pin
Glenn Inman20-Sep-05 2:22
Glenn Inman20-Sep-05 2:22 
/* ** This is an interesting C++ bug, well I think it is a bug
*/
class CTest1
{
public:
BYTE* pbData;

public:
CTest1()
{
pbData = new BYTE[GetDataSize()];
}

virtual int GetDataSize()
{
return 16;
}
};

class CTest2 : public CTest1
{
CTest2() : CTest1()
{
}

virtual int GetDataSize()
{
return 32;
}

};

/*
** when CTest2 is created you would expect a buffer of 32 bytes to be allocated
** but lo and behold, you get 16, try it
**
** in c# they got it right, try the same experiment and you will get 32 allocated in CTest2
*/

public class CTest1
{
public byte[] abyData = null;
public CTest1()
{
abyData = new byte[DataSize];
}

virtual int DataSize
{
get{return 16;}
}
}

public class CTest2 : CTest1
{
override int DataSize
{
get{return 32;}
}
}

AnswerRe: A Bug in the land of construction??? Pin
prasad_som20-Sep-05 2:42
prasad_som20-Sep-05 2:42 
AnswerRe: A Bug in the land of construction??? Pin
Nemanja Trifunovic20-Sep-05 2:50
Nemanja Trifunovic20-Sep-05 2:50 
QuestionOPOS DRIVER - OCX and DLL Pin
honae20-Sep-05 2:18
honae20-Sep-05 2:18 
QuestionC++ related question Pin
Ahsan Askare20-Sep-05 0:55
Ahsan Askare20-Sep-05 0:55 
AnswerRe: C++ related question Pin
toxcct20-Sep-05 1:00
toxcct20-Sep-05 1:00 
GeneralRe: C++ related question Pin
Bob Stanneveld20-Sep-05 1:02
Bob Stanneveld20-Sep-05 1:02 
GeneralRe: C++ related question Pin
Ahsan Askare20-Sep-05 1:03
Ahsan Askare20-Sep-05 1:03 
AnswerRe: C++ related question Pin
Bob Stanneveld20-Sep-05 1:01
Bob Stanneveld20-Sep-05 1:01 
AnswerRe: C++ related question Pin
karmendra_js20-Sep-05 1:24
karmendra_js20-Sep-05 1:24 
AnswerRe: C++ related question Pin
Cedric Moonen20-Sep-05 1:54
Cedric Moonen20-Sep-05 1:54 
AnswerRe: C++ related question Pin
Nemanja Trifunovic20-Sep-05 2:40
Nemanja Trifunovic20-Sep-05 2:40 
QuestionProblem Creating object and accessing public member function. Pin
karmendra_js20-Sep-05 0:20
karmendra_js20-Sep-05 0:20 
AnswerRe: Problem Creating object and accessing public member function. Pin
Bob Stanneveld20-Sep-05 0:38
Bob Stanneveld20-Sep-05 0:38 
GeneralRe: Problem Creating object and accessing public member function. Pin
karmendra_js20-Sep-05 0:51
karmendra_js20-Sep-05 0:51 
GeneralRe: Problem Creating object and accessing public member function. Pin
Satishkumar.B20-Sep-05 2:11
Satishkumar.B20-Sep-05 2:11 
Questionthreading in networking Pin
ppp00120-Sep-05 0:05
ppp00120-Sep-05 0:05 
AnswerRe: threading in networking Pin
Bob Stanneveld20-Sep-05 0:41
Bob Stanneveld20-Sep-05 0:41 

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.