<BODY><P>Hi,</P>
<P>I have some trouble reading files, any file really, as I always get this 'System.TypeLoadException' when I try to execute something. This goes for vtkImageReader2 as well as vtkVolumeReader. Anyone experienced anything similar and know how to deal with it? I'll include a piece of code just to show you (in case I screwed up with that) although I don't know if it's of any help:</P>
<P><FONT color=#0000ff size=2>#include</FONT><FONT size=2> "vtkDICOMImageReader.h"</P></FONT><FONT color=#0000ff size=2>
<P>#include</FONT><FONT size=2> "vtkImageViewer.h"</P></FONT>
<P><FONT color=#0000ff size=2>int</FONT><FONT size=2> _tmain(){</P>
<P>vtkDICOMImageReader *reader = vtkDICOMImageReader::New();</P>
<P>reader->SetFileName("C:/VTKData/Data/mr.001");</P>
<P>vtkImageViewer *viewer = vtkImageViewer::New();</P>
<P>viewer->SetInput(reader->GetOutput());</P>
<P>viewer->Render();</P>
<P>viewer->Delete();</P>
<P>reader->Delete();</P>
<P></FONT><FONT color=#0000ff size=2>return</FONT><FONT size=2> 0;</P>
<P>}</P></FONT>
<P>Thanks,</P>
<P>Markus</P></BODY>