Click here to Skip to main content
15,899,754 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow Do I Get/Set Mouse Sensitivity? Pin
Anonymous1-Feb-00 11:05
suss Anonymous1-Feb-00 11:05 
GeneralCreateFileMapping - Open it... Pin
braulio31-Jan-00 22:26
braulio31-Jan-00 22:26 
GeneralODBC Recordset Indexes Pin
Henry Venn31-Jan-00 21:51
Henry Venn31-Jan-00 21:51 
QuestionHow to insert picture in CRichEditView ? !!!! Pin
Roma31-Jan-00 4:23
Roma31-Jan-00 4:23 
QuestionIPX and CSocket? Pin
Topher30-Jan-00 13:02
Topher30-Jan-00 13:02 
GeneralANNOUNCEMENT: New C/C++ source beautifier Pin
HPSI29-Jan-00 19:39
HPSI29-Jan-00 19:39 
GeneralProblems with Visual C++ Version 6 Pin
Subby Rajan29-Jan-00 7:15
sussSubby Rajan29-Jan-00 7:15 
GeneralRE: Problems with Visual C++ Version 6 Pin
Michael Owen31-Jan-00 9:07
Michael Owen31-Jan-00 9:07 
Subby,

For each of the names that you entered in, how many characters were typed in? Check for a buffer overflow ( especially on the 2nd name ).

- Mike

==================
The original message was:

I have a simple C++ console application (same problem with MFC application) that uses character strings. With Version 6, the debug version crashes when it tries to read the character string. However, the release version works fine. With Version 5, both the debug and release versions work fine.
------------------------------------------------------
#include <iostream.h>
#include <assert.h>

#define MAXENTRIES 2

main ()
{
char* szNames[MAXENTRIES]={"1234567890", "1234567890"};

for (int i=0; i < MAXENTRIES; i++) {
cout << "Input a name: ";
assert (szNames[i]);
cin >> szNames[i];
cout << "You have input: " << szNames[i] << endl;
}

return (0);
}
GeneralRE: RE: Problems with Visual C++ Version 6 Pin
StasK2-Feb-00 2:55
suss StasK2-Feb-00 2:55 
QuestionHow do I allow ODBC access my data Pin
Anonymous28-Jan-00 6:27
suss Anonymous28-Jan-00 6:27 
GeneralLost debugg information Pin
martin27-Jan-00 21:25
suss martin27-Jan-00 21:25 
GeneralRE: Lost debugg information Pin
Anonymous1-Feb-00 0:46
suss Anonymous1-Feb-00 0:46 
GeneralAdding controls to a CTabCtrl Pin
Frank Deo27-Jan-00 9:02
Frank Deo27-Jan-00 9:02 
GeneralRE: Adding controls to a CTabCtrl Pin
Nick Hodapp29-Jan-00 11:34
sitebuilderNick Hodapp29-Jan-00 11:34 
GeneralCtabctrl - change tab name on double click Pin
chrisg27-Jan-00 5:26
chrisg27-Jan-00 5:26 
GeneralCreating DLLs in VC for use in VB Pin
Bagyalakshmi SN26-Jan-00 20:18
sussBagyalakshmi SN26-Jan-00 20:18 
GeneralRE: Creating DLLs in VC for use in VB Pin
Nick Hodapp29-Jan-00 11:29
sitebuilderNick Hodapp29-Jan-00 11:29 
GeneralFlexGrid Activation Problem Pin
glerner26-Jan-00 16:58
glerner26-Jan-00 16:58 
GeneralNested CSplitterWnd('s) and CSize Pin
Frank Deo25-Jan-00 11:01
Frank Deo25-Jan-00 11:01 
GeneralRE: Nested CSplitterWnd('s) and CSize Pin
Mike Dunn25-Jan-00 14:50
Mike Dunn25-Jan-00 14:50 
GeneralRE: RE: Nested CSplitterWnd('s) and CSize Pin
Frank Deo26-Jan-00 12:08
Frank Deo26-Jan-00 12:08 
GeneralNeed a SMALL database solution Pin
Ryan Schneider25-Jan-00 7:12
Ryan Schneider25-Jan-00 7:12 
GeneralRE: Need a SMALL database solution Pin
Laura Michaels3-Feb-00 5:08
sussLaura Michaels3-Feb-00 5:08 
GeneralClosing a CFormView Pin
Jed24-Jan-00 5:59
Jed24-Jan-00 5:59 
GeneralRE: Closing a CFormView Pin
Mike Dunn24-Jan-00 7:13
Mike Dunn24-Jan-00 7:13 

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.