Click here to Skip to main content
15,911,715 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to use recompiled header file? Pin
Waldermort27-Aug-06 4:35
Waldermort27-Aug-06 4:35 
QuestionToolbar Control Pin
mehrdadov27-Aug-06 2:29
mehrdadov27-Aug-06 2:29 
AnswerRe: Toolbar Control Pin
Christian Graus27-Aug-06 2:59
protectorChristian Graus27-Aug-06 2:59 
GeneralRe: Toolbar Control Pin
mehrdadov27-Aug-06 20:23
mehrdadov27-Aug-06 20:23 
GeneralRe: Toolbar Control Pin
Hamid_RT27-Aug-06 21:27
Hamid_RT27-Aug-06 21:27 
Questionassigning strings to dynamic arrays Pin
jon-8027-Aug-06 1:47
professionaljon-8027-Aug-06 1:47 
AnswerRe: assigning strings to dynamic arrays Pin
Christian Graus27-Aug-06 2:14
protectorChristian Graus27-Aug-06 2:14 
AnswerRe: assigning strings to dynamic arrays Pin
krmed27-Aug-06 4:37
krmed27-Aug-06 4:37 
Your for loop has problems:

    {    m_tempList = new string[Size];<br />
    <br />
//copy Sentences to m_tempList<br />
    for (int iIndex = 0; iIndex = Size; iIndex++)<br />
    {m_tempList[iIndex] = Sentences[iIndex];} // ERROR!

Since you allocated Size items, the index has a maximum of (Size-1). In the test of your for loop (iIndex = Size), you are setting the value of iIndex to Size instead of testing it for the limit. Your code in the for loop then tries to set the [Size] member to the value - illegal since it onlly has [Size-1] members.
Perhaps you mean:
<br />
for (int iIndex = 0; iIndex < Size; iIndex++)<br />


Karl - WK5M
PP-ASEL-IA (N43CS)
<kmedcalf@ev1.net>
PGP Key: 0xDB02E193
PGP Key Fingerprint: 8F06 5A2E 2735 892B 821C 871A 0411 94EA DB02 E193

AnswerRe: assigning strings to dynamic arrays Pin
Hamid_RT28-Aug-06 7:38
Hamid_RT28-Aug-06 7:38 
QuestionWindows XP made VC++ Application not running in Windows 2000 Professional...?? Pin
siddhen26-Aug-06 21:48
siddhen26-Aug-06 21:48 
AnswerRe: Windows XP made VC++ Application not running in Windows 2000 Professional...?? Pin
Christian Graus26-Aug-06 22:08
protectorChristian Graus26-Aug-06 22:08 
AnswerRe: Windows XP made VC++ Application not running in Windows 2000 Professional...?? Pin
Andy Moore27-Aug-06 9:59
Andy Moore27-Aug-06 9:59 
AnswerRe: Windows XP made VC++ Application not running in Windows 2000 Professional...?? Pin
Hamid_RT28-Aug-06 7:37
Hamid_RT28-Aug-06 7:37 
QuestionCan't open program in another PC Pin
Max++26-Aug-06 19:14
Max++26-Aug-06 19:14 
AnswerRe: Can't open program in another PC Pin
Mircea Puiu26-Aug-06 20:13
Mircea Puiu26-Aug-06 20:13 
GeneralRe: Can't open program in another PC Pin
Max++26-Aug-06 20:33
Max++26-Aug-06 20:33 
GeneralRe: Can't open program in another PC Pin
Christian Graus26-Aug-06 20:45
protectorChristian Graus26-Aug-06 20:45 
AnswerRe: Can't open program in another PC Pin
siddhen26-Aug-06 21:44
siddhen26-Aug-06 21:44 
GeneralRe: Can't open program in another PC Pin
Christian Graus26-Aug-06 22:10
protectorChristian Graus26-Aug-06 22:10 
AnswerRe: Can't open program in another PC Pin
Trollslayer27-Aug-06 3:27
mentorTrollslayer27-Aug-06 3:27 
GeneralRe: Can't open program in another PC Pin
Max++27-Aug-06 3:35
Max++27-Aug-06 3:35 
GeneralRe: Can't open program in another PC Pin
BlitzPackage27-Aug-06 15:59
BlitzPackage27-Aug-06 15:59 
GeneralRe: Can't open program in another PC Pin
Hamid_RT28-Aug-06 7:31
Hamid_RT28-Aug-06 7:31 
AnswerRe: Can't open program in another PC Pin
DaHongying27-Aug-06 4:35
DaHongying27-Aug-06 4:35 
QuestionIs learning win32 only learning functions in dll? Pin
sawerr26-Aug-06 18:12
sawerr26-Aug-06 18:12 

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.