Click here to Skip to main content
15,887,175 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: vc++ Pin
David Crow1-Jun-06 4:15
David Crow1-Jun-06 4:15 
QuestionDoes vc7/8 supprot declare a variable in switch case? Pin
followait31-May-06 18:46
followait31-May-06 18:46 
AnswerRe: Does vc7/8 supprot declare a variable in switch case? Pin
_AnsHUMAN_ 31-May-06 18:49
_AnsHUMAN_ 31-May-06 18:49 
GeneralRe: Does vc7/8 supprot declare a variable in switch case? Pin
Steve Mayfield31-May-06 19:30
Steve Mayfield31-May-06 19:30 
GeneralRe: Does vc7/8 supprot declare a variable in switch case? Pin
_AnsHUMAN_ 31-May-06 19:36
_AnsHUMAN_ 31-May-06 19:36 
GeneralRe: Does vc7/8 supprot declare a variable in switch case? Pin
David Crow1-Jun-06 4:17
David Crow1-Jun-06 4:17 
Questionlink two visual projects [modified] Pin
widoxs31-May-06 18:39
widoxs31-May-06 18:39 
AnswerRe: link two visual projects [modified] Pin
NiceNaidu31-May-06 18:55
NiceNaidu31-May-06 18:55 
QuestionMemory problem Pin
Anu_Bala31-May-06 18:20
Anu_Bala31-May-06 18:20 
AnswerRe: Memory problem Pin
Hamid_RT31-May-06 18:29
Hamid_RT31-May-06 18:29 
AnswerRe: Memory problem [modified] Pin
Nibu babu thomas31-May-06 19:05
Nibu babu thomas31-May-06 19:05 
QuestionRe: Memory problem [modified] Pin
David Crow1-Jun-06 4:20
David Crow1-Jun-06 4:20 
AnswerRe: Memory problem [modified] Pin
Nibu babu thomas1-Jun-06 17:23
Nibu babu thomas1-Jun-06 17:23 
GeneralRe: Memory problem [modified] Pin
David Crow2-Jun-06 2:56
David Crow2-Jun-06 2:56 
GeneralRe: Memory problem [modified] Pin
Nibu babu thomas2-Jun-06 3:03
Nibu babu thomas2-Jun-06 3:03 
DavidCrow wrote:
But the point is that the source could be longer than the destination, which is why strcpy() should not be used, regardless of how it deals with the \0 terminator.


Exactly, I was just demonstrating how such things could happen.


DavidCrow wrote:
Last time I checked, STL used memory from the heap (i.e., dynamic). There's just not any way around not using memory from the heap.


Exactly, they work by allocating on the heap. But then we don't have to do it. These are proven classes (AFAIK) which work efficiently. Hence using them would be best for us. These classes takes the onus on them to do memory clean up.


Nibu thomas
A Developer

Programming tips[^]  My site[^]

AnswerRe: Memory problem Pin
Sarath C31-May-06 19:14
Sarath C31-May-06 19:14 
GeneralRe: Memory problem Pin
led mike31-May-06 19:32
led mike31-May-06 19:32 
GeneralRe: Memory problem [modified] Pin
Sarath C31-May-06 19:52
Sarath C31-May-06 19:52 
GeneralRe: Memory problem [modified] Pin
palbano1-Jun-06 4:50
palbano1-Jun-06 4:50 
QuestionVideo Card Memory [modified] Pin
Matthew R. Miller31-May-06 16:45
Matthew R. Miller31-May-06 16:45 
AnswerRe: Video Card Memory [modified] Pin
Hamid_RT31-May-06 18:44
Hamid_RT31-May-06 18:44 
Questionstack overflow -- in a thread? Pin
Peter Weyzen31-May-06 15:31
Peter Weyzen31-May-06 15:31 
AnswerRe: stack overflow -- in a thread? Pin
John M. Drescher31-May-06 16:04
John M. Drescher31-May-06 16:04 
QuestionRe: stack overflow -- in a thread? Pin
Peter Weyzen31-May-06 18:47
Peter Weyzen31-May-06 18:47 
AnswerRe: stack overflow -- in a thread? Pin
Sarath C31-May-06 20:01
Sarath C31-May-06 20:01 

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.