Click here to Skip to main content
15,894,740 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: File rename in UNICODE Pin
Ajay L D26-Dec-07 17:15
Ajay L D26-Dec-07 17:15 
GeneralRe: File rename in UNICODE Pin
CPallini26-Dec-07 4:56
mveCPallini26-Dec-07 4:56 
GeneralRe: File rename in UNICODE Pin
Ajay L D26-Dec-07 18:46
Ajay L D26-Dec-07 18:46 
GeneralRe: File rename in UNICODE Pin
David Crow27-Dec-07 4:32
David Crow27-Dec-07 4:32 
Generalbad_alloc Pin
George_George26-Dec-07 2:36
George_George26-Dec-07 2:36 
GeneralRe: bad_alloc Pin
CPallini26-Dec-07 11:53
mveCPallini26-Dec-07 11:53 
GeneralRe: bad_alloc Pin
George_George26-Dec-07 17:44
George_George26-Dec-07 17:44 
GeneralRe: bad_alloc Pin
CPallini26-Dec-07 20:58
mveCPallini26-Dec-07 20:58 
George_George wrote:
If we met with bad_alloc, do we need to use delete or delete[] to free the memory in exception handler block?


You don't need to free unallocated memory, qutoing MSDN
http://msdn2.microsoft.com/en-us/library/6512dwes(vs.80).aspx[^]:


The class describes an exception thrown to indicate that an allocation request did not succeed.

Smile | :)

If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.

[my articles]


GeneralRe: bad_alloc Pin
George_George26-Dec-07 21:07
George_George26-Dec-07 21:07 
GeneralRe: bad_alloc Pin
CPallini26-Dec-07 21:27
mveCPallini26-Dec-07 21:27 
GeneralRe: bad_alloc Pin
George_George26-Dec-07 21:32
George_George26-Dec-07 21:32 
Questionhow am i use "textattr" which is library in turbo c to visual studio? Pin
Jung Seng Won26-Dec-07 2:12
Jung Seng Won26-Dec-07 2:12 
AnswerRe: how am i use "textattr" which is library in turbo c to visual studio? Pin
CPallini26-Dec-07 5:02
mveCPallini26-Dec-07 5:02 
GeneralRefreshing Tree control in VC++ Pin
CJ94200226-Dec-07 0:34
CJ94200226-Dec-07 0:34 
GeneralRe: Refreshing Tree control in VC++ Pin
peterchen26-Dec-07 0:45
peterchen26-Dec-07 0:45 
GeneralFile Handling Pin
Sangeetha_J25-Dec-07 22:52
Sangeetha_J25-Dec-07 22:52 
QuestionHow to make use of SDI features print etc... in Dialog based application Pin
msr_codeproject25-Dec-07 21:45
msr_codeproject25-Dec-07 21:45 
GeneralRAII (Resource Acquisition Is Initialization) pattern limitations Pin
George_George25-Dec-07 20:55
George_George25-Dec-07 20:55 
GeneralRe: RAII (Resource Acquisition Is Initialization) pattern limitations Pin
peterchen26-Dec-07 0:40
peterchen26-Dec-07 0:40 
GeneralRe: RAII (Resource Acquisition Is Initialization) pattern limitations Pin
George_George26-Dec-07 0:58
George_George26-Dec-07 0:58 
GeneralRe: RAII (Resource Acquisition Is Initialization) pattern limitations Pin
peterchen26-Dec-07 1:22
peterchen26-Dec-07 1:22 
GeneralRe: RAII (Resource Acquisition Is Initialization) pattern limitations Pin
George_George26-Dec-07 1:53
George_George26-Dec-07 1:53 
Generalproblem in _bstr_t Pin
rjkg25-Dec-07 19:46
rjkg25-Dec-07 19:46 
GeneralRe: problem in _bstr_t Pin
peterchen26-Dec-07 0:33
peterchen26-Dec-07 0:33 
GeneralVariable life cycle Pin
George_George25-Dec-07 19:24
George_George25-Dec-07 19:24 

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.