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

C / C++ / MFC

 
GeneralRe: what this code is doing? Pin
With_problem26-Sep-06 21:27
With_problem26-Sep-06 21:27 
GeneralRe: what this code is doing? Pin
Steve Echols26-Sep-06 21:37
Steve Echols26-Sep-06 21:37 
QuestionRe: what this code is doing? Pin
David Crow27-Sep-06 3:13
David Crow27-Sep-06 3:13 
AnswerRe: what this code is doing? Pin
Reagan Conservative27-Sep-06 8:32
Reagan Conservative27-Sep-06 8:32 
Questionserial communication prog? Pin
Sunshine Always26-Sep-06 20:25
Sunshine Always26-Sep-06 20:25 
AnswerRe: serial communication prog? Pin
Hamid_RT26-Sep-06 20:40
Hamid_RT26-Sep-06 20:40 
AnswerRe: serial communication prog? Pin
Ștefan-Mihai MOGA26-Sep-06 22:51
professionalȘtefan-Mihai MOGA26-Sep-06 22:51 
QuestionMemory Allocation Pin
Polite Programmer26-Sep-06 20:10
Polite Programmer26-Sep-06 20:10 
Sometimes, while allocating memory in my programs, I get NULL in responce to call of new operator.
Sometimes, when I execute following pair of statements, I get Heap Error.

TCHAR * szText = new TCHAR[iLen * 7] ;
//... Some Code
delete [] szText ; // Causes heap error

Where and what I might be doing wrong?

Polite Programmer


More Object Oriented then C#

AnswerRe: Memory Allocation Pin
Cedric Moonen26-Sep-06 20:10
Cedric Moonen26-Sep-06 20:10 
GeneralRe: Memory Allocation Pin
Polite Programmer26-Sep-06 20:22
Polite Programmer26-Sep-06 20:22 
GeneralRe: Memory Allocation Pin
Cedric Moonen26-Sep-06 20:28
Cedric Moonen26-Sep-06 20:28 
QuestionRe: Memory Allocation Pin
David Crow27-Sep-06 3:16
David Crow27-Sep-06 3:16 
AnswerRe: Memory Allocation Pin
User 21559726-Sep-06 20:26
User 21559726-Sep-06 20:26 
GeneralRe: Memory Allocation Pin
Polite Programmer26-Sep-06 20:31
Polite Programmer26-Sep-06 20:31 
QuestionRe: Memory Allocation Pin
David Crow27-Sep-06 3:22
David Crow27-Sep-06 3:22 
GeneralRe: Memory Allocation Pin
nutkase27-Sep-06 18:35
nutkase27-Sep-06 18:35 
AnswerRe: Memory Allocation Pin
kakan26-Sep-06 20:33
professionalkakan26-Sep-06 20:33 
GeneralRe: Memory Allocation Pin
Polite Programmer26-Sep-06 20:41
Polite Programmer26-Sep-06 20:41 
GeneralRe: Memory Allocation [modified] Pin
kakan26-Sep-06 20:51
professionalkakan26-Sep-06 20:51 
Questionhow to refresh automatically in a property page? Pin
yijia_2426-Sep-06 20:04
yijia_2426-Sep-06 20:04 
QuestionRe: how to refresh automatically in a property page? Pin
David Crow27-Sep-06 3:25
David Crow27-Sep-06 3:25 
AnswerRe: how to refresh automatically in a property page? Pin
yijia_2427-Sep-06 15:47
yijia_2427-Sep-06 15:47 
QuestionRe: how to refresh automatically in a property page? Pin
David Crow28-Sep-06 2:37
David Crow28-Sep-06 2:37 
QuestionRe: how to refresh automatically in a property page? Pin
yijia_242-Oct-06 18:03
yijia_242-Oct-06 18:03 
AnswerRe: how to refresh automatically in a property page? Pin
David Crow3-Oct-06 2:49
David Crow3-Oct-06 2:49 

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.