Click here to Skip to main content
15,849,262 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: C++ app with no MS CRT usage Pin
James Brown28-Feb-06 14:00
James Brown28-Feb-06 14:00 
GeneralRe: C++ app with no MS CRT usage Pin
derek728-Feb-06 16:17
derek728-Feb-06 16:17 
Questiondebugging an exe on windows xp Pin
ns28-Feb-06 9:20
ns28-Feb-06 9:20 
QuestionSDI's View DC Pin
masnu28-Feb-06 7:54
masnu28-Feb-06 7:54 
AnswerRe: SDI's View DC Pin
PJ Arends28-Feb-06 8:40
professionalPJ Arends28-Feb-06 8:40 
GeneralRe: SDI's View DC Pin
masnu28-Feb-06 8:59
masnu28-Feb-06 8:59 
GeneralRe: SDI's View DC Pin
David Crow28-Feb-06 9:12
David Crow28-Feb-06 9:12 
QuestionRe: SDI's View DC Pin
masnu28-Feb-06 9:52
masnu28-Feb-06 9:52 
David,

From what you said I assume I need to put the code in my CMainFrame class, which I did. I no longer get a compiler error, but I get an access violation error in the objcore.cpp file:

BOOL CObject::IsKindOf(const CRuntimeClass* pClass) const<br />
{<br />
	ENSURE(this != NULL);<br />
	// it better be in valid memory, at least for CObject size<br />
	ASSERT(AfxIsValidAddress(this, sizeof(CObject)));<br />
<br />
	// simple SI case<br />
	CRuntimeClass* pClassThis = GetRuntimeClass();   //ERROR HERE<br />
<br />
	ENSURE(pClassThis);<br />
	return pClassThis->IsDerivedFrom(pClass);<br />
}


What I have is:

void CMainFrame::Scroll()<br />
{<br />
	CDC* pDC = CFrameWnd::GetActiveView()->GetDC();<br />
<br />
	CStripChart* pStrip;<br />
	pStrip->Scroll(pDC);<br />
}


Any suggestions?

Thanks.
QuestionRe: SDI's View DC Pin
David Crow28-Feb-06 10:05
David Crow28-Feb-06 10:05 
AnswerRe: SDI's View DC Pin
masnu28-Feb-06 10:37
masnu28-Feb-06 10:37 
QuestionRe: SDI's View DC Pin
David Crow28-Feb-06 11:01
David Crow28-Feb-06 11:01 
AnswerRe: SDI's View DC Pin
masnu28-Feb-06 11:34
masnu28-Feb-06 11:34 
QuestionRe: SDI's View DC Pin
David Crow28-Feb-06 11:40
David Crow28-Feb-06 11:40 
AnswerRe: SDI's View DC Pin
masnu28-Feb-06 11:43
masnu28-Feb-06 11:43 
QuestionRe: SDI's View DC Pin
David Crow28-Feb-06 11:45
David Crow28-Feb-06 11:45 
AnswerRe: SDI's View DC Pin
masnu28-Feb-06 11:54
masnu28-Feb-06 11:54 
AnswerRe: SDI's View DC Pin
PJ Arends28-Feb-06 12:00
professionalPJ Arends28-Feb-06 12:00 
QuestionHow Thread Run Parallely Pin
zahid_ash28-Feb-06 7:52
zahid_ash28-Feb-06 7:52 
AnswerRe: How Thread Run Parallely Pin
David Crow28-Feb-06 8:13
David Crow28-Feb-06 8:13 
GeneralRe: How Thread Run Parallely Pin
zahid_ash28-Feb-06 8:42
zahid_ash28-Feb-06 8:42 
GeneralRe: How Thread Run Parallely Pin
Maximilien28-Feb-06 8:46
Maximilien28-Feb-06 8:46 
GeneralRe: How Thread Run Parallely Pin
David Crow28-Feb-06 8:50
David Crow28-Feb-06 8:50 
GeneralRe: How Thread Run Parallely Pin
zahid_ash28-Feb-06 8:58
zahid_ash28-Feb-06 8:58 
GeneralRe: How Thread Run Parallely Pin
David Crow28-Feb-06 9:10
David Crow28-Feb-06 9:10 
QuestionOpen and write in XML-Document Pin
hanno2528-Feb-06 6:16
hanno2528-Feb-06 6:16 

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.