Click here to Skip to main content
16,011,743 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Non Modal Dialogs Pin
User 665819-May-04 2:48
User 665819-May-04 2:48 
GeneralRe: Non Modal Dialogs Pin
Prakash Nadar19-May-04 7:54
Prakash Nadar19-May-04 7:54 
GeneralRe: Non Modal Dialogs Pin
pavneet20-May-04 0:25
pavneet20-May-04 0:25 
Generalpointer error Pin
Ni@m19-May-04 1:35
Ni@m19-May-04 1:35 
GeneralRe: pointer error Pin
Prakash Nadar19-May-04 1:46
Prakash Nadar19-May-04 1:46 
GeneralRe: pointer error Pin
Dennis Gourjii19-May-04 1:58
Dennis Gourjii19-May-04 1:58 
GeneralRe: pointer error Pin
Tim Smith19-May-04 3:49
Tim Smith19-May-04 3:49 
GeneralRe: pointer error Pin
Dennis Gourjii21-May-04 0:39
Dennis Gourjii21-May-04 0:39 
Yup. This can be true. But the other possibility is that there actually is no error and Debug version just keeps generating that lousy exception because I'm trying to write beyond what's the end of the string (i.e. '\0') but far from being beyond the end of the allocated memory end. In such case it can be but a misunderstanding based on compiler developers' wish to warn programmer of a possible mistake.
If it's an actual error then please somebody explain to me what's wrong with this code:
char* ptr=new char[256];
strcpy(ptr,"123");
ptr[3]='4';
ptr[4]='\0';
delete [] char; //we get an exception here
GeneralRe: pointer error Pin
Cedric Moonen19-May-04 1:51
Cedric Moonen19-May-04 1:51 
GeneralRe: pointer error Pin
valikac19-May-04 5:11
valikac19-May-04 5:11 
GeneralRe: pointer error Pin
bikram singh19-May-04 5:58
bikram singh19-May-04 5:58 
GeneralTreeCtrl with Tri-State Checkboxes Pin
Taliston19-May-04 0:59
Taliston19-May-04 0:59 
Questionhow to draw Dashed Ellipse in WinCE Pin
Arun AC19-May-04 0:19
Arun AC19-May-04 0:19 
AnswerRe: how to draw Dashed Ellipse in WinCE Pin
Mike Dimmick19-May-04 5:36
Mike Dimmick19-May-04 5:36 
Generalread a txt file by using Serialize function Pin
jfk_lili18-May-04 23:25
jfk_lili18-May-04 23:25 
GeneralDoc/View inside Dialog based project Pin
-alok-18-May-04 23:21
suss-alok-18-May-04 23:21 
GeneralRe: Doc/View inside Dialog based project Pin
jmkhael18-May-04 23:56
jmkhael18-May-04 23:56 
GeneralRe: Doc/View inside Dialog based project Pin
-alok-19-May-04 23:55
suss-alok-19-May-04 23:55 
GeneralSetSysColors permanent in profile Pin
thilol18-May-04 23:20
thilol18-May-04 23:20 
Generaldelete vs delete [] Pin
Johann Gerell18-May-04 23:07
Johann Gerell18-May-04 23:07 
GeneralRe: delete vs delete [] Pin
jmkhael18-May-04 23:38
jmkhael18-May-04 23:38 
GeneralRe: delete vs delete [] Pin
RChin19-May-04 1:56
RChin19-May-04 1:56 
GeneralRe: delete vs delete [] Pin
Diddy19-May-04 2:12
Diddy19-May-04 2:12 
GeneralRe: delete vs delete [] Pin
Johann Gerell19-May-04 2:53
Johann Gerell19-May-04 2:53 
GeneralRe: delete vs delete [] Pin
RChin19-May-04 3:17
RChin19-May-04 3:17 

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.