<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1106" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Dear,</FONT></DIV>
<DIV><FONT face=Arial size=2>
all...</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> iam
making a new sample pgm.. if i want to build this sample program in
VS C++ .. then i got a error(as bellow).. how is avoid it? pls send to
me..</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Error:</FONT></DIV>
<DIV><FONT face=Arial size=2> <STRONG>Debug error !</STRONG></FONT></DIV>
<DIV><FONT face=Arial size=2><STRONG>
</STRONG></FONT></DIV>
<DIV><FONT face=Arial size=2><STRONG>
program :..../sample/myproject.cxx</STRONG></FONT></DIV>
<DIV><FONT face=Arial size=2><STRONG></STRONG></FONT> </DIV>
<DIV><FONT face=Arial size=2><STRONG> abnormal program
termination</STRONG></FONT></DIV>
<DIV><FONT face=Arial size=2><STRONG></STRONG></FONT> </DIV>
<DIV><FONT face=Arial size=2><STRONG> (Press Retry to debug
the application)</STRONG></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>My program is ..</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2><STRONG>myprogram.cxx:</STRONG></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>#include "itkImage.h"<BR>#include
"itkImageFileReader.h"<BR>#include "itkImageToVTKImageFilter.h"<BR>#include
"vtkImageViewer.h"<BR>#include "vtkRenderWindowInteractor.h"<BR>int main( int
argc, char **argv ) {<BR>typedef itk::Image<unsigned short,2>
ImageType;<BR>typedef itk::ImageFileReader<ImageType>
ReaderType;<BR>typedef itk::ImageToVTKImageFilter< ImageType>
ConnectorType;<BR>ReaderType::Pointer reader =
ReaderType::New();<BR>ConnectorType::Pointer connector =
ConnectorType::New();<BR>reader->SetFileName( argv[1]
);<BR>connector->SetInput( reader->GetOutput() );<BR>vtkImageViewer *
viewer = vtkImageViewer::New();<BR>vtkRenderWindowInteractor *
renderWindowInteractor
=<BR>vtkRenderWindowInteractor::New();<BR>viewer->SetupInteractor(
renderWindowInteractor );<BR>viewer->SetInput( connector->GetOutput()
);<BR>viewer->Render();<BR>viewer->SetColorWindow( 255
);<BR>viewer->SetColorLevel( 128
);<BR>renderWindowInteractor->Start();<BR>return 0;<BR>}</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I wait for ur reply....</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Regards,</FONT></DIV>
<DIV><FONT face=Arial
size=2> Venu
Thomas</FONT></DIV></BODY></HTML>