<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Hi Gib,<br><br>&nbsp;&nbsp; I managed to build ITK, VTK, and run the ImageReadWrite.cxx.<br>It seems that the folder structure suggested by John Drescher worked for me.<br>I still get a First-chance exception at 0x7c812afb in ImageReadWrite.exe: Microsoft C++ exception: itk::ExceptionObject at memory location 0x0137f6b8..<br>The program '[3412] ImageReadWrite.exe: Native' has exited with code 1 (0x1).<br>&nbsp;&nbsp;&nbsp; I googled it and it seems to be a a notification to the debugger so it can stop the program.<br>&nbsp;&nbsp;&nbsp; But i still can't see the result image. My image is a gray scale jpeg 164x120<br>Here is my code:<br>#if defined(_MSC_VER)<br>#pragma warning ( disable : 4786 )<br>#endif<br><br>#ifdef __BORLANDC__<br>#define ITK_LEAN_AND_MEAN<br>#endif<br><br>#include "itkImageFileReader.h"<br>#include "itkImageFileWriter.h"<br>#include
 "itkImage.h"<br><br><br>int main( int argc, char ** argv )<br>{<br>&nbsp; <br><br>&nbsp; typedef short&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; PixelType;<br>&nbsp; const&nbsp;&nbsp; unsigned int&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Dimension = 2;<br>&nbsp; typedef itk::Image&lt; PixelType, Dimension &gt;&nbsp;&nbsp;&nbsp; ImageType;<br>&nbsp; typedef itk::ImageFileReader&lt; ImageType &gt;&nbsp; ReaderType;<br>&nbsp; typedef itk::ImageFileWriter&lt; ImageType &gt;&nbsp; WriterType;<br><br>&nbsp; ReaderType::Pointer reader = ReaderType::New();<br>&nbsp; WriterType::Pointer writer = WriterType::New();<br><br>&nbsp; const char * inputFilename&nbsp; = "bla.jpg"; <br>&nbsp; const char * outputFilename = "bla2.jpg";<br><br>&nbsp; reader-&gt;SetFileName( inputFilename&nbsp; );<br>&nbsp; writer-&gt;SetFileName( outputFilename );<br>&nbsp;<br>&nbsp; try <br>&nbsp;&nbsp;&nbsp; { <br>&nbsp;&nbsp;&nbsp; writer-&gt;Update(); <br>&nbsp;&nbsp;&nbsp; } <br>&nbsp; catch(
 itk::ExceptionObject &amp; err ) <br>&nbsp;&nbsp;&nbsp; { <br>&nbsp;&nbsp;&nbsp; std::cerr &lt;&lt; "ExceptionObject caught !" &lt;&lt; std::endl; <br>&nbsp;&nbsp;&nbsp; std::cerr &lt;&lt; err &lt;&lt; std::endl; <br>&nbsp;&nbsp;&nbsp; return EXIT_FAILURE;<br>&nbsp;&nbsp;&nbsp; } <br><br>&nbsp; return EXIT_SUCCESS;<br>}<br>Cheers,<br>Ella<br></td></tr></table><br>