<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML dir=ltr><HEAD><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=unicode">
<META content="MSHTML 6.00.2800.1589" name=GENERATOR></HEAD>
<BODY>
<DIV id=idOWAReplyText46352 dir=ltr>
<DIV dir=ltr>
<DIV id=idOWAReplyText25762 dir=ltr>
<DIV dir=ltr><FONT size=2>Hi everybody,</FONT></DIV>
<DIV dir=ltr><FONT size=2></FONT>&nbsp;</DIV>
<DIV dir=ltr><FONT size=2>I've just update to the latest vtk source files from 
CVS (date: 11/03/2007)&nbsp;and have a problem trying to get the vtkMFC examples 
to work. </FONT></DIV>
<DIV dir=ltr><FONT size=2></FONT>&nbsp;</DIV>
<DIV dir=ltr><FONT size=2>The problem seems to lie in vtkmfcindow.cpp, 
L</FONT><FONT size=2>ine 129, in the function <FONT color=#0000ff size=2>
<P>void</FONT><FONT size=2> 
vtkMFCWindow::SetRenderWindow(vtkWin32OpenGLRenderWindow* win)</FONT></P>
<P>{</P>
<P>&nbsp;&nbsp; <FONT color=#008000 size=2>// update size</FONT></P>
<P><FONT color=#008000>&nbsp;&nbsp; </FONT><FONT size=2>CRect cRect = 
CRect(0,0,1,1);</P>
<P></FONT><FONT color=#0000ff size=2>&nbsp;&nbsp;&nbsp; if</FONT><FONT 
size=2>(</FONT><FONT color=#0000ff size=2>this</FONT><FONT 
size=2>-&gt;GetParent())&nbsp; // ERROR OCCURS HERE!!&nbsp;</FONT></P>
<P><FONT color=#0000ff size=2>&nbsp;&nbsp; this</FONT><FONT 
size=2>-&gt;GetParent()-&gt;GetClientRect(&amp;cRect);</P>
<P></FONT>}&nbsp;</FONT></P></DIV>
<DIV dir=ltr><FONT size=2>I've attached a screen dump showing the error at <A 
href="http://profile.imageshack.us/user/theouk/images/detail/#111/debugzf2.jpg">http://profile.imageshack.us/user/theouk/images/detail/#111/debugzf2.jpg</A>.</FONT></DIV>
<DIV dir=ltr>&nbsp;</DIV>
<DIV dir=ltr><FONT size=2>Initially, i thought that my installation was corrupt 
so i cleaned it out and did a full rebuild. But the problem remained. I've also 
set up another pc to compile a fresh copy of the CVS, however, the same problem 
occured both in DEBUG and RELEASE mode.</FONT></DIV>
<DIV dir=ltr><FONT size=2></FONT>&nbsp;</DIV>
<DIV dir=ltr><FONT size=2>I had no problems prior to updating with the current 
CVS edition.</FONT></DIV>
<DIV dir=ltr><FONT size=2></FONT>&nbsp;</DIV>
<DIV dir=ltr><FONT size=2>Has anyone had trouble trying to run the latest CVS 
MFC examples (vtkSDI, vtkMDI, vtkDLG) experienced this similar 
problem?</FONT></DIV>
<DIV dir=ltr><FONT size=2></FONT>&nbsp;</DIV>
<DIV dir=ltr><FONT size=2>Would appreciated if anyone who's solved the problem 
enlighten me on how to resolve it. Any help is much appreciated.</FONT></DIV>
<DIV dir=ltr><FONT size=2></FONT>&nbsp;</DIV>
<DIV dir=ltr><FONT size=2>Many thanks in advance,</FONT></DIV>
<DIV dir=ltr><FONT size=2>Theo.</FONT></DIV></DIV></DIV></DIV></BODY></HTML>