Click here to Skip to main content
15,919,028 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: modal dialog range checking Pin
Tomasz Sowinski13-Aug-02 9:13
Tomasz Sowinski13-Aug-02 9:13 
GeneralRe: modal dialog range checking Pin
jimNLX13-Aug-02 9:28
jimNLX13-Aug-02 9:28 
GeneralRe: modal dialog range checking Pin
Tomasz Sowinski13-Aug-02 9:30
Tomasz Sowinski13-Aug-02 9:30 
GeneralRe: modal dialog range checking Pin
jimNLX13-Aug-02 9:36
jimNLX13-Aug-02 9:36 
GeneralRe: modal dialog range checking Pin
Tomasz Sowinski13-Aug-02 9:39
Tomasz Sowinski13-Aug-02 9:39 
GeneralRe: modal dialog range checking Pin
JennyP13-Aug-02 10:14
JennyP13-Aug-02 10:14 
GeneralRe: modal dialog range checking Pin
jimNLX13-Aug-02 10:57
jimNLX13-Aug-02 10:57 
Questionwrong use of delete here? Pin
ns13-Aug-02 8:17
ns13-Aug-02 8:17 
I found this in my code, and it works with no compiler or runtime error (so far). But I am thinking now it should have been delete[] a and not delete a. So why didnt it crash or complain?

char* a = new char [pDoc->m_KeysOptions.GetLength () + 1];  //SQLQuery

strcpy (a, pDoc->m_KeysOptions);

m_nToDisplay = pDoc->m_db.DLLSendKeywordsOptions(a);

delete a;


Thanks,
ns

Or should it really be delete a; after all?
AnswerRe: wrong use of delete here? Pin
includeh1013-Aug-02 8:25
includeh1013-Aug-02 8:25 
AnswerRe: wrong use of delete here? Pin
Tomasz Sowinski13-Aug-02 8:27
Tomasz Sowinski13-Aug-02 8:27 
AnswerRe: wrong use of delete here? Pin
Ravi Bhavnani13-Aug-02 14:46
professionalRavi Bhavnani13-Aug-02 14:46 
AnswerRe: wrong use of delete here? Pin
Daniel Lohmann14-Aug-02 0:08
Daniel Lohmann14-Aug-02 0:08 
Generalsave and load dynamic struct, need help ... Pin
includeh1013-Aug-02 8:15
includeh1013-Aug-02 8:15 
GeneralRe: save and load dynamic struct, need help ... Pin
Alexander Wiseman13-Aug-02 8:42
Alexander Wiseman13-Aug-02 8:42 
GeneralRe: save and load dynamic struct, need help ... Pin
includeh1013-Aug-02 8:53
includeh1013-Aug-02 8:53 
GeneralRe: save and load dynamic struct, need help ... Pin
Alexander Wiseman13-Aug-02 10:47
Alexander Wiseman13-Aug-02 10:47 
GeneralRe: save and load dynamic struct, need help ... Pin
Daniel Turini13-Aug-02 9:29
Daniel Turini13-Aug-02 9:29 
GeneralRe: save and load dynamic struct, need help ... Pin
Bill Wilson13-Aug-02 13:20
Bill Wilson13-Aug-02 13:20 
GeneralCListCtrl arrow key navigation Pin
dennisV13-Aug-02 7:59
dennisV13-Aug-02 7:59 
GeneralRe: CListCtrl arrow key navigation Pin
Shog913-Aug-02 8:53
sitebuilderShog913-Aug-02 8:53 
GeneralRe: CListCtrl arrow key navigation Pin
dennisV13-Aug-02 9:04
dennisV13-Aug-02 9:04 
GeneralRe: CListCtrl arrow key navigation Pin
Shog913-Aug-02 9:10
sitebuilderShog913-Aug-02 9:10 
GeneralRe: CListCtrl arrow key navigation Pin
dennisV13-Aug-02 9:32
dennisV13-Aug-02 9:32 
GeneralRe: CListCtrl arrow key navigation Pin
Shog913-Aug-02 9:36
sitebuilderShog913-Aug-02 9:36 
GeneralKill a screensaver... Pin
Matt Eckerson13-Aug-02 7:49
Matt Eckerson13-Aug-02 7: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.