Click here to Skip to main content
15,893,588 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Address Bar Pin
ThatsAlok15-Jul-04 19:41
ThatsAlok15-Jul-04 19:41 
GeneralRe: Address Bar Pin
Liger_Zero_X15-Jul-04 21:34
Liger_Zero_X15-Jul-04 21:34 
GeneralRe: Address Bar Pin
David Crow16-Jul-04 3:01
David Crow16-Jul-04 3:01 
GeneralPointer Usage Pin
IceBerG7115-Jul-04 16:54
IceBerG7115-Jul-04 16:54 
GeneralRe: Pointer Usage Pin
Michael Dunn15-Jul-04 17:21
sitebuilderMichael Dunn15-Jul-04 17:21 
GeneralRe: Pointer Usage Pin
Anonymous15-Jul-04 18:38
Anonymous15-Jul-04 18:38 
GeneralRe: Pointer Usage Pin
Antti Keskinen15-Jul-04 19:57
Antti Keskinen15-Jul-04 19:57 
GeneralRe: Pointer Usage Pin
David Crow16-Jul-04 3:09
David Crow16-Jul-04 3:09 
Anonymous wrote:
So Is There Performance Related Issue When using new & delete rather than just use the normal char declaration?

Yes. One requires help from the memory manager, while the other does not. However, the "penalty" is negligible.

It's also not uncommon for the new operator to be used incorrectly. For example:

char *name = new char[32];
lstrcpy(name, _T("David"));
m_listbox.AddString(name);
delete [] name;
This is highly unnecessarily. Consider this instead:

char name[32] = _T("David"); // or char *name = _T("David");
m_listbox.AddString(name);



"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen


GeneralRe: Pointer Usage Pin
digwizfox16-Jul-04 10:37
digwizfox16-Jul-04 10:37 
GeneralWM_NCCALCSIZE and WM_NCPAINT madness Pin
Jim Crafton15-Jul-04 15:18
Jim Crafton15-Jul-04 15:18 
GeneralRe: WM_NCCALCSIZE and WM_NCPAINT madness Pin
Johan Rosengren15-Jul-04 22:53
Johan Rosengren15-Jul-04 22:53 
GeneralTrapping mouse down and mouse up with CMenu's TrackPopupMenu() Pin
jeffb4215-Jul-04 14:13
jeffb4215-Jul-04 14:13 
QuestionHow to create a 16 Color (4-bit) Bitmap? Pin
Pinhead_Me15-Jul-04 13:19
Pinhead_Me15-Jul-04 13:19 
GeneralCListCtrl DeleteColumn Pin
Anthony988715-Jul-04 12:44
Anthony988715-Jul-04 12:44 
GeneralRe: CListCtrl DeleteColumn Pin
Jörgen Sigvardsson15-Jul-04 13:03
Jörgen Sigvardsson15-Jul-04 13:03 
GeneralRe: CListCtrl DeleteColumn Pin
Anthony988715-Jul-04 13:06
Anthony988715-Jul-04 13:06 
GeneralRe: CListCtrl DeleteColumn Pin
Jim Crafton15-Jul-04 16:07
Jim Crafton15-Jul-04 16:07 
GeneralApplication stuck when a window is moved Pin
Aragorn@Gondor15-Jul-04 12:23
Aragorn@Gondor15-Jul-04 12:23 
GeneralRe: Application stuck when a window is moved Pin
Anders Molin15-Jul-04 12:29
professionalAnders Molin15-Jul-04 12:29 
GeneralRe: Application stuck when a window is moved Pin
Jörgen Sigvardsson15-Jul-04 13:07
Jörgen Sigvardsson15-Jul-04 13:07 
Generalcompiling errors with xutility header file Pin
zlatnik15-Jul-04 12:02
zlatnik15-Jul-04 12:02 
GeneralRe: compiling errors with xutility header file Pin
vmaltsev15-Jul-04 12:30
vmaltsev15-Jul-04 12:30 
GeneralRe: compiling errors with xutility header file Pin
zlatnik15-Jul-04 12:37
zlatnik15-Jul-04 12:37 
GeneralRe: compiling errors with xutility header file Pin
vmaltsev15-Jul-04 12:41
vmaltsev15-Jul-04 12:41 
GeneralRe: compiling errors with xutility header file Pin
zlatnik15-Jul-04 12:47
zlatnik15-Jul-04 12:47 

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.