Click here to Skip to main content
15,913,939 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questioncreate an Event to a TreeView Pin
sabeeshcs19-May-08 2:41
sabeeshcs19-May-08 2:41 
AnswerCross Post Pin
led mike19-May-08 4:26
led mike19-May-08 4:26 
QuestionHelp clarify "this" pointer with dialog boxes Pin
Kwanalouie19-May-08 1:59
Kwanalouie19-May-08 1:59 
AnswerRe: Help clarify "this" pointer with dialog boxes Pin
toxcct19-May-08 2:12
toxcct19-May-08 2:12 
AnswerRe: Help clarify "this" pointer with dialog boxes Pin
_AnsHUMAN_ 19-May-08 2:14
_AnsHUMAN_ 19-May-08 2:14 
QuestionHow can i get the summary property of docx file Pin
Prazwol19-May-08 1:32
Prazwol19-May-08 1:32 
QuestionRe: How can i get the summary property of docx file Pin
David Crow19-May-08 3:50
David Crow19-May-08 3:50 
Questioninitialization problem Pin
Dennis L19-May-08 0:16
Dennis L19-May-08 0:16 
Hi all!

I have a problem when i initialize class members.

The class is:

class NAME
{
private:
int a;
int b;
BYTE bs1[480];
BYTE bs2[480];

public:
// FUNCTIONS

NAME();
~NAME();
}

in CPP file:

NAME::NAME():a(0),b(0)
{
memset(bs1, "", sizeof(BYTE)*480) // This run well when debugging
memset(bs2, "", sizeof(BYTE)*480) // Here crashes???
}

Can anyone tell me why it crashes in the second memset?

Thanks!
AnswerRe: initialization problem Pin
toxcct19-May-08 0:27
toxcct19-May-08 0:27 
AnswerRe: initialization problem Pin
CPallini19-May-08 0:30
mveCPallini19-May-08 0:30 
GeneralRe: initialization problem Pin
Dennis L19-May-08 0:36
Dennis L19-May-08 0:36 
QuestionAsyncronous connection using wininet. Pin
ShilpiP18-May-08 23:50
ShilpiP18-May-08 23:50 
QuestionRead from command prompt Pin
Kiran Pinjala18-May-08 23:43
Kiran Pinjala18-May-08 23:43 
AnswerRe: Read from command prompt Pin
toxcct18-May-08 23:46
toxcct18-May-08 23:46 
GeneralRe: Read from command prompt Pin
Kiran Pinjala19-May-08 0:33
Kiran Pinjala19-May-08 0:33 
AnswerRe: Read from command prompt Pin
Rajkumar R19-May-08 0:39
Rajkumar R19-May-08 0:39 
AnswerRe: Read from command prompt Pin
David Crow19-May-08 3:52
David Crow19-May-08 3:52 
AnswerRe: Read from command prompt Pin
sashoalm19-May-08 6:12
sashoalm19-May-08 6:12 
Questionaudio connection to PC Pin
Sunshine Always18-May-08 23:33
Sunshine Always18-May-08 23:33 
Questionc++ Pin
lipun18-May-08 23:29
lipun18-May-08 23:29 
AnswerRe: c++ Pin
Rajkumar R18-May-08 23:35
Rajkumar R18-May-08 23:35 
AnswerRe: c++ Pin
toxcct18-May-08 23:45
toxcct18-May-08 23:45 
Questionsymbol undefined Pin
subramanyeswari18-May-08 23:05
subramanyeswari18-May-08 23:05 
QuestionRe: symbol undefined Pin
CPallini18-May-08 23:09
mveCPallini18-May-08 23:09 
AnswerRe: symbol undefined Pin
subramanyeswari18-May-08 23:14
subramanyeswari18-May-08 23:14 

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.