Click here to Skip to main content
15,921,941 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRegistry setting Pin
krk24-Sep-02 3:56
krk24-Sep-02 3:56 
GeneralRe: Registry setting Pin
jhwurmbach24-Sep-02 4:08
jhwurmbach24-Sep-02 4:08 
GeneralCreateDIBSection Pin
pépé24-Sep-02 3:47
pépé24-Sep-02 3:47 
GeneralRe: CreateDIBSection Pin
Tomasz Sowinski24-Sep-02 3:56
Tomasz Sowinski24-Sep-02 3:56 
GeneralRe: CreateDIBSection Pin
pépé24-Sep-02 4:07
pépé24-Sep-02 4:07 
GeneralRe: CreateDIBSection Pin
Tomasz Sowinski24-Sep-02 4:14
Tomasz Sowinski24-Sep-02 4:14 
GeneralRe: CreateDIBSection Pin
pépé24-Sep-02 4:32
pépé24-Sep-02 4:32 
Generaldeleting strings Pin
Zizilamoroso24-Sep-02 3:42
Zizilamoroso24-Sep-02 3:42 
We delete an array of char this way:
delete[] str;<br />
str=NULL


But, if the string is created like str=_T("test"); or #define str _T("test"), trying to delete it results in an exception.

Now, my question is this: how can I figure out if the string is deletable or not? (must be a const prob)

I know I should strcpy those strings before use, but lazy me...



[VISUAL STUDIO 6.0] [MFC] [WIN98/2]
GeneralRe: deleting strings Pin
Tomasz Sowinski24-Sep-02 3:54
Tomasz Sowinski24-Sep-02 3:54 
GeneralRe: deleting strings Pin
John Burton24-Sep-02 3:54
John Burton24-Sep-02 3:54 
GeneralRe: deleting strings Pin
Le centriste24-Sep-02 6:50
Le centriste24-Sep-02 6:50 
GeneralRe: deleting strings Pin
Andreas Saurwein24-Sep-02 6:51
Andreas Saurwein24-Sep-02 6:51 
GeneralRe: deleting strings Pin
Zizilamoroso24-Sep-02 13:03
Zizilamoroso24-Sep-02 13:03 
GeneralRe: deleting strings Pin
Todd Smith24-Sep-02 7:13
Todd Smith24-Sep-02 7:13 
Generalprinting content in the specified position on document to printer Pin
vgkotha24-Sep-02 3:40
vgkotha24-Sep-02 3:40 
GeneralRe: printing content in the specified position on document to printer Pin
Roger Allen24-Sep-02 6:58
Roger Allen24-Sep-02 6:58 
QuestionError when use IDiskQuotaControl->FindUserName etc.? Pin
Anonymous24-Sep-02 3:38
Anonymous24-Sep-02 3:38 
Generalannoying carchive problem Pin
carrie24-Sep-02 3:16
carrie24-Sep-02 3:16 
Generaldeleting a control from the form Pin
ns24-Sep-02 3:14
ns24-Sep-02 3:14 
GeneralRe: deleting a control from the form Pin
jmkhael24-Sep-02 3:15
jmkhael24-Sep-02 3:15 
GeneralRe: deleting a control from the form Pin
ns24-Sep-02 3:47
ns24-Sep-02 3:47 
GeneralRe: deleting a control from the form Pin
jhwurmbach24-Sep-02 4:02
jhwurmbach24-Sep-02 4:02 
GeneralRe: deleting a control from the form Pin
Tomasz Sowinski24-Sep-02 4:10
Tomasz Sowinski24-Sep-02 4:10 
GeneralRe: deleting a control from the form Pin
Pavel Klocek24-Sep-02 4:10
Pavel Klocek24-Sep-02 4:10 
Generalsendmessage to a modal dialog Pin
ns24-Sep-02 2:32
ns24-Sep-02 2:32 

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.