[vtkusers] Re: VC6 + MFC: and recent Nightly
nNunn at ausport.gov.au
Tue Sep 12 04:58:36 EDT 2000
I just rebuilt our VC++/MFC application with the nightly:
Program: Visualization Toolkit
Module: $RCSfile: vtkVersion.h,v $
Date: $Date: 2000/09/09 20:11:09 $
Version: $Revision: 1.625 $
All looks good so far. The nightlies looked unstable earlier that week,
so there may have been problems in your revision 1.622 (Sep 6). If
you get the same problems with the current nightly, try building the
new version of Sample, $:\vtk\Sample\Sample.dsw. This demo MFC app
has been brought up to date, and there are a few significant changes.
Most importantly, the vtkHandleMessage call has been replaced with
vtkHandleMessage2, and 'o' for object mode in the default interactor
has been reworked to use 'a' for actor mode. 'c' still switches back
to camera mode, 'j'=joystick and 't'=trackball.
// Define our own event handler here
LRESULT vtkMFCRenderView::WindowProc( ... )
return vtkHandleMessage2( // <-- changed
message, wParam, lParam,
return vtkMFCView::WindowProc(message, wParam, lParam);
Maurizio Turatti [mturatti at ais.it] wrote:
> I have a problem with a VTK Nightly (date 2000/09/06, revision 1.622).
> I'm using Visual C++ 6 and the MFC sample doesn't work. It compiles,
> but when I run the program it suddenly close with a dr. Watson's error
> message "Application Error", then the process remains idle in memory.
> This happens also with another VTK program which uses MFC. The same
> programs run fine with a 2000/05/29 VTK release, compiling with Visual
> C++ 5. I don't know if this behaviour is caused by VTK or VC6.
More information about the vtkusers