Click here to Skip to main content
15,894,180 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: C++ app with no MS CRT usage Pin
James Brown28-Feb-06 13:00
James Brown28-Feb-06 13:00 
GeneralRe: C++ app with no MS CRT usage Pin
derek728-Feb-06 15:17
derek728-Feb-06 15:17 
Questiondebugging an exe on windows xp Pin
ns28-Feb-06 8:20
ns28-Feb-06 8:20 
QuestionSDI's View DC Pin
masnu28-Feb-06 6:54
masnu28-Feb-06 6:54 
AnswerRe: SDI's View DC Pin
PJ Arends28-Feb-06 7:40
professionalPJ Arends28-Feb-06 7:40 
GeneralRe: SDI's View DC Pin
masnu28-Feb-06 7:59
masnu28-Feb-06 7:59 
GeneralRe: SDI's View DC Pin
David Crow28-Feb-06 8:12
David Crow28-Feb-06 8:12 
QuestionRe: SDI's View DC Pin
masnu28-Feb-06 8:52
masnu28-Feb-06 8: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 9:05
David Crow28-Feb-06 9:05 
AnswerRe: SDI's View DC Pin
masnu28-Feb-06 9:37
masnu28-Feb-06 9:37 
QuestionRe: SDI's View DC Pin
David Crow28-Feb-06 10:01
David Crow28-Feb-06 10:01 
AnswerRe: SDI's View DC Pin
masnu28-Feb-06 10:34
masnu28-Feb-06 10:34 
QuestionRe: SDI's View DC Pin
David Crow28-Feb-06 10:40
David Crow28-Feb-06 10:40 
AnswerRe: SDI's View DC Pin
masnu28-Feb-06 10:43
masnu28-Feb-06 10:43 
QuestionRe: SDI's View DC Pin
David Crow28-Feb-06 10:45
David Crow28-Feb-06 10:45 
AnswerRe: SDI's View DC Pin
masnu28-Feb-06 10:54
masnu28-Feb-06 10:54 
AnswerRe: SDI's View DC Pin
PJ Arends28-Feb-06 11:00
professionalPJ Arends28-Feb-06 11:00 
QuestionHow Thread Run Parallely Pin
zahid_ash28-Feb-06 6:52
zahid_ash28-Feb-06 6:52 
AnswerRe: How Thread Run Parallely Pin
David Crow28-Feb-06 7:13
David Crow28-Feb-06 7:13 
GeneralRe: How Thread Run Parallely Pin
zahid_ash28-Feb-06 7:42
zahid_ash28-Feb-06 7:42 
GeneralRe: How Thread Run Parallely Pin
Maximilien28-Feb-06 7:46
Maximilien28-Feb-06 7:46 
GeneralRe: How Thread Run Parallely Pin
David Crow28-Feb-06 7:50
David Crow28-Feb-06 7:50 
GeneralRe: How Thread Run Parallely Pin
zahid_ash28-Feb-06 7:58
zahid_ash28-Feb-06 7:58 
GeneralRe: How Thread Run Parallely Pin
David Crow28-Feb-06 8:10
David Crow28-Feb-06 8:10 
QuestionOpen and write in XML-Document Pin
hanno2528-Feb-06 5:16
hanno2528-Feb-06 5: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.