Click here to Skip to main content
14,699,613 members
Home » Discussions » C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Found Api's Causing Heap Corruption CPallini You are Great thanks Pin
ForNow5-Dec-18 8:28
MemberForNow5-Dec-18 8:28 
GeneralRe: Found Api's Causing Heap Corruption Pin
Richard MacCutchan5-Dec-18 8:43
mveRichard MacCutchan5-Dec-18 8:43 
GeneralRe: Found Api's Causing Heap Corruption Pin
CPallini5-Dec-18 8:49
mveCPallini5-Dec-18 8:49 
QuestionCComboBox list Appears After Trying to Close out Dialog Pin
ForNow4-Dec-18 17:06
MemberForNow4-Dec-18 17:06 
GeneralRe: CComboBox list Appears After Trying to Close out Dialog Pin
Richard MacCutchan4-Dec-18 23:13
mveRichard MacCutchan4-Dec-18 23:13 
GeneralRe: CComboBox list Appears After Trying to Close out Dialog Pin
ForNow5-Dec-18 3:09
MemberForNow5-Dec-18 3:09 
GeneralRe: CComboBox list Appears After Trying to Close out Dialog Pin
Richard MacCutchan5-Dec-18 3:41
mveRichard MacCutchan5-Dec-18 3:41 
GeneralRe: CComboBox list Appears After Trying to Close out Dialog Pin
ForNow5-Dec-18 3:50
MemberForNow5-Dec-18 3:50 
I Did but I don't understand why

I am getting a list of Addreess Spaces information from z/os I only want to Add the the list box the Job Name. Asid information is 45 bytes the first 8 is the JobName. So the First would be *Master*


I moved the code which copies the first 8 charcates from CComboBox::DrawItem to the DialogBox

just got Debug Assert on the AddString I think I am doing everything right;

m_Simple.arrayptr = new char *[j+1];
	traverse = instr;
	for (int i = 0; i < j + 1; i++)
	{
		m_Simple.arrayptr[i] = new char(9);
		memset(m_Simple.arrayptr[i], 0x00, 9);
		memcpy(m_Simple.arrayptr[i], traverse, 8);
		m_Simple.AddString(m_Simple.arrayptr[i]);
		traverse = (char *)traverse + 45;
	}


The twisted Arrow after the Debug Heap Assertion is pointing to
traverse = (char *)traverse + 45


So I guess there is a problem with AddString

Not sure what I am doing wrong
GeneralRe: CComboBox list Appears After Trying to Close out Dialog Pin
Richard MacCutchan5-Dec-18 8:36
mveRichard MacCutchan5-Dec-18 8:36 
Question"undefined reference " error - what am I missing ? Pin
Vaclav_4-Dec-18 8:19
MemberVaclav_4-Dec-18 8:19 
AnswerRe: "undefined reference " error - what am I missing ? Pin
leon de boer4-Dec-18 8:36
Memberleon de boer4-Dec-18 8:36 
GeneralRe: "undefined reference " error - what am I missing ? Pin
Vaclav_4-Dec-18 8:50
MemberVaclav_4-Dec-18 8:50 
QuestionRe: "undefined reference " error - what am I missing ? Pin
Richard MacCutchan4-Dec-18 9:55
mveRichard MacCutchan4-Dec-18 9:55 
AnswerRe: "undefined reference " error - what am I missing ? Pin
Joe Woodbury4-Dec-18 10:02
professionalJoe Woodbury4-Dec-18 10:02 
GeneralRe: "undefined reference " error - what am I missing ? Pin
Vaclav_4-Dec-18 13:33
MemberVaclav_4-Dec-18 13:33 
GeneralRe: "undefined reference " error - what am I missing ? Pin
Joe Woodbury4-Dec-18 13:36
professionalJoe Woodbury4-Dec-18 13:36 
GeneralRe: "undefined reference " error - what am I missing ? Pin
Vaclav_4-Dec-18 16:15
MemberVaclav_4-Dec-18 16:15 
GeneralRe: "undefined reference " error - what am I missing ? Pin
Joe Woodbury4-Dec-18 19:48
professionalJoe Woodbury4-Dec-18 19:48 
GeneralRe: "undefined reference " error - what am I missing ? Pin
Vaclav_5-Dec-18 5:35
MemberVaclav_5-Dec-18 5:35 
GeneralRe: "undefined reference " error - what am I missing ? Pin
Richard MacCutchan4-Dec-18 23:00
mveRichard MacCutchan4-Dec-18 23:00 
QuestionString Search In C++ Pin
Hack Baba4-Dec-18 7:07
MemberHack Baba4-Dec-18 7:07 
AnswerRe: String Search In C++ Pin
jeron14-Dec-18 7:10
Memberjeron14-Dec-18 7:10 
GeneralRe: String Search In C++ Pin
Hack Baba4-Dec-18 7:21
MemberHack Baba4-Dec-18 7:21 
GeneralRe: String Search In C++ Pin
jeron14-Dec-18 8:49
Memberjeron14-Dec-18 8:49 
AnswerRe: String Search In C++ Pin
Richard MacCutchan4-Dec-18 7:33
mveRichard MacCutchan4-Dec-18 7:33 

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.