Click here to Skip to main content
15,912,082 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: TCHAR to char problem Pin
Rajesh R Subramanian15-Aug-08 1:03
professionalRajesh R Subramanian15-Aug-08 1:03 
GeneralRe: TCHAR to char problem Pin
fantasy121515-Aug-08 15:24
fantasy121515-Aug-08 15:24 
QuestionError when call function lstrlenA in kernel32.dll(VC++6.0) [modified] Pin
aa_zz14-Aug-08 17:27
aa_zz14-Aug-08 17:27 
AnswerRe: Error when call function lstrlenA in kernel32.dll(VC++6.0) Pin
fantasy121514-Aug-08 17:57
fantasy121514-Aug-08 17:57 
AnswerRe: Error when call function lstrlenA in kernel32.dll(VC++6.0) Pin
Stephen Hewitt14-Aug-08 18:53
Stephen Hewitt14-Aug-08 18:53 
AnswerRe: Error when call function lstrlenA in kernel32.dll(VC++6.0) Pin
KarstenK14-Aug-08 21:44
mveKarstenK14-Aug-08 21:44 
GeneralRe: Error when call function lstrlenA in kernel32.dll(VC++6.0) Pin
enhzflep15-Aug-08 3:21
enhzflep15-Aug-08 3:21 
GeneralRe: Error when call function lstrlenA in kernel32.dll(VC++6.0) Pin
David Crow15-Aug-08 4:05
David Crow15-Aug-08 4:05 
AnswerRe: Error when call function lstrlenA in kernel32.dll(VC++6.0) Pin
Mark Salsbery15-Aug-08 8:51
Mark Salsbery15-Aug-08 8:51 
Questiondelete efficiency question Pin
followait14-Aug-08 16:23
followait14-Aug-08 16:23 
AnswerRe: delete efficiency question Pin
Mark Salsbery14-Aug-08 16:27
Mark Salsbery14-Aug-08 16:27 
AnswerRe: delete efficiency question Pin
Jijo.Raj14-Aug-08 19:23
Jijo.Raj14-Aug-08 19:23 
GeneralRe: delete efficiency question Pin
Stephen Hewitt14-Aug-08 21:16
Stephen Hewitt14-Aug-08 21:16 
GeneralRe: delete efficiency question Pin
Roger Stoltz14-Aug-08 21:38
Roger Stoltz14-Aug-08 21:38 
GeneralRe: delete efficiency question Pin
Stephen Hewitt14-Aug-08 21:40
Stephen Hewitt14-Aug-08 21:40 
GeneralRe: delete efficiency question Pin
Jijo.Raj15-Aug-08 1:15
Jijo.Raj15-Aug-08 1:15 
GeneralRe: delete efficiency question Pin
Mark Salsbery15-Aug-08 5:07
Mark Salsbery15-Aug-08 5:07 
AnswerRe: delete efficiency question Pin
Roger Stoltz15-Aug-08 5:19
Roger Stoltz15-Aug-08 5:19 
GeneralRe: delete efficiency question Pin
Mark Salsbery15-Aug-08 6:01
Mark Salsbery15-Aug-08 6:01 
GeneralRe: delete efficiency question Pin
Stephen Hewitt17-Aug-08 15:46
Stephen Hewitt17-Aug-08 15:46 
You've made me think more carefully about this again: the compiler could comply with the standard by generating code for the NULL check at the site of the delete call and not in the function itself. In fact this seems like a good strategy. MSVC6 at least doesn’t (delete without an if check):
004010F7 50                   push        eax
004010F8 E8 AB 20 00 00       call        operator delete (004031a8)
004010FD 83 C4 08             add         esp,8


Clearly you were correct when you suggest that the OP should stop guessing and measure.

Steve

Questionapahce sever - writestring - assertion failed Pin
simon alec smith14-Aug-08 14:45
simon alec smith14-Aug-08 14:45 
QuestionAccess Violation error in MFC Pin
Larry Mills Sr14-Aug-08 7:03
Larry Mills Sr14-Aug-08 7:03 
AnswerRe: Access Violation error in MFC Pin
Reagan Conservative14-Aug-08 8:29
Reagan Conservative14-Aug-08 8:29 
GeneralRe: Access Violation error in MFC Pin
Larry Mills Sr14-Aug-08 10:05
Larry Mills Sr14-Aug-08 10:05 
QuestionHow to get SysMonthCal32 to display in the dialog font when a theme is active? Pin
Keith Worden14-Aug-08 6:52
Keith Worden14-Aug-08 6:52 

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.