<div><strong>Hi, vtkers,</strong></div>
<div><strong> </strong></div>
<div><strong>I have met the error in new vtkMFCWindow, which made me very confused.</strong></div>
<div><strong> </strong></div>
<div><strong>I build a project totally the same as the example "vtkDlg" as I think.</strong></div>
<div><strong>It's bulit successfully, however, when I debug it until the beakpoint</strong></div>
<div><strong>"this->pvtkMFCWindow = new vtkMFCWindow(this->GetDlgItem(IDC_PICTURE_DCM));"</strong></div>
<div><strong>and</strong> </div>
<div>"</div>
<div>vtkMFCWindow::vtkMFCWindow(CWnd *pcWnd)<br>{<br> this->pvtkWin32OpenGLRW = NULL;</div>
<div>
<p> // create self as a child of passed in parent<br> DWORD style = WS_VISIBLE | WS_CLIPSIBLINGS;<br> if(pcWnd)<br> style |= WS_CHILD;<br> BOOL bCreated = CWnd::Create(NULL, _T("VTK-MFC Window"),<br> style, CRect(0, 0, 1, 1),
<br> pcWnd, (UINT)IDC_STATIC); <strong> //The system break down here</strong></p>
<p> SUCCEEDED(bCreated);</p>
<p> // create a default vtk window<br> vtkWin32OpenGLRenderWindow* win = vtkWin32OpenGLRenderWindow::New();<br> this->SetRenderWindow(win);<br> win->Delete();</p>
<p>}</p></div>
<div>"</div>
<div> </div>
<div><strong>Can anyone met this? I will be very appreciated if you tell me how to solve it.</strong><br clear="all"><br>-- <br>Best wishes,<br>Chris </div>