Click here to Skip to main content
15,890,897 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
QuestionInterlockedIncrement usage Pin
Krishnakumartg10-Dec-10 3:20
Krishnakumartg10-Dec-10 3:20 
AnswerRe: InterlockedIncrement usage Pin
Cool_Dev10-Dec-10 3:35
Cool_Dev10-Dec-10 3:35 
AnswerRe: InterlockedIncrement usage Pin
Anand Todkar14-Dec-10 22:06
Anand Todkar14-Dec-10 22:06 
QuestionTab key in WTL ProperySheetPage sounds bell? Pin
ddoutel9-Dec-10 7:37
ddoutel9-Dec-10 7:37 
AnswerRe: Tab key in WTL ProperySheetPage sounds bell? Pin
mbue9-Dec-10 14:49
mbue9-Dec-10 14:49 
GeneralRe: Tab key in WTL ProperySheetPage sounds bell? Pin
ddoutel9-Dec-10 15:28
ddoutel9-Dec-10 15:28 
AnswerRe: Tab key in WTL ProperySheetPage sounds bell? [modified] Pin
Alain Rist9-Dec-10 22:54
Alain Rist9-Dec-10 22:54 
Questioncrash related to CString acces violating Pin
MrKBA8-Dec-10 3:43
MrKBA8-Dec-10 3:43 
I have this :

struct struct_X
{
struct_X() :
nX(0)
{
}
int nX;
CString m_strName;
};

struct_X *ptrX1=NULL;
struct_X *ptrX2=NULL;

i have a loop like this :
for(int Idx = 0; Condition; Idx++)
{
...
...
if(nCount==0)
ptrX1= new struct_X;
else
ptrX1=ReallocArray((nCount+1), nCount, ptrX2); // copy the content of ptrX2 to ptrX1 and delete ptrX2 (**)

if(ptrTmp==NULL)
break;

ptrX2=ptrX1;
ptrX2[nCount].nX = 1;
ptrX2[nCount].m_strName = strTempName; // Here I have an a crash related to CString acces violating

nCount++;
}


in the first loop ( nCount = 0) there is no problem
but after the ReallocArray (**) i get the problem in ptrX2[nCount].m_strName

Have any one idea how to solve this?
AnswerRe: crash related to CString acces violating Pin
Alain Rist8-Dec-10 4:40
Alain Rist8-Dec-10 4:40 
GeneralRe: crash related to CString acces violating Pin
MrKBA8-Dec-10 4:50
MrKBA8-Dec-10 4:50 
AnswerRe: crash related to CString acces violating Pin
Alain Rist8-Dec-10 5:12
Alain Rist8-Dec-10 5:12 
AnswerRe: crash related to CString acces violating Pin
mbue9-Dec-10 14:07
mbue9-Dec-10 14:07 
QuestionProgramme to add given no of days to the current date to give the resulted date Pin
cmaheshwari167-Dec-10 17:49
cmaheshwari167-Dec-10 17:49 
AnswerRe: Programme to add given no of days to the current date to give the resulted date Pin
Richard MacCutchan7-Dec-10 22:23
mveRichard MacCutchan7-Dec-10 22:23 
GeneralRe: Programme to add given no of days to the current date to give the resulted date Pin
cmaheshwari167-Dec-10 23:46
cmaheshwari167-Dec-10 23:46 
GeneralRe: Programme to add given no of days to the current date to give the resulted date Pin
Richard MacCutchan8-Dec-10 2:53
mveRichard MacCutchan8-Dec-10 2:53 
GeneralRe: Programme to add given no of days to the current date to give the resulted date Pin
cmaheshwari169-Dec-10 18:07
cmaheshwari169-Dec-10 18:07 
GeneralRe: Programme to add given no of days to the current date to give the resulted date Pin
Richard MacCutchan9-Dec-10 22:35
mveRichard MacCutchan9-Dec-10 22:35 
GeneralRe: Programme to add given no of days to the current date to give the resulted date Pin
cmaheshwari1610-Dec-10 1:10
cmaheshwari1610-Dec-10 1:10 
GeneralRe: Programme to add given no of days to the current date to give the resulted date Pin
Richard MacCutchan10-Dec-10 2:44
mveRichard MacCutchan10-Dec-10 2:44 
QuestionHow to read the all Guids defined in abcd_i.c file from pdb Pin
glitteringsound6-Dec-10 23:09
glitteringsound6-Dec-10 23:09 
Questioni have a question about for_each Pin
lxlenovostar3-Dec-10 6:24
lxlenovostar3-Dec-10 6:24 
AnswerRe: i have a question about for_each Pin
Alain Rist3-Dec-10 23:30
Alain Rist3-Dec-10 23:30 
AnswerRe: i have a question about for_each Pin
xtofl6-Dec-10 4:18
xtofl6-Dec-10 4:18 
QuestionLinear Algebra with C++ Pin
VeganFanatic30-Nov-10 13:25
VeganFanatic30-Nov-10 13:25 

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.