the vtkFormsWindow is another object in the folder of &quot;VTK\GUISupport\WindowsForms&quot;, u need reference it in your project.<br><br clear="all">王云<br>--------------------------------------<br><a href="http://www.sd-space.com">http://www.sd-space.com</a><br>

<a href="http://www.gisspace.net">http://www.gisspace.net</a><br>
<br><br><div class="gmail_quote">2010/9/28  <span dir="ltr">&lt;<a href="mailto:lindeval@dmat.ufrr.br">lindeval@dmat.ufrr.br</a>&gt;</span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

The following error occurred while compiling a basic example with VtkFormsWindow component in Visual Studio 2008:<br>
<br>
contentes of Form1.cs<br>
<br>
using System;<br>
using System.Collections.Generic;<br>
using System.ComponentModel;<br>
using System.Data;<br>
using System.Drawing;<br>
using System.Linq;<br>
using System.Text;<br>
using System.Windows.Forms;<br>
using vtk;<br>
<br>
namespace Exemplo0<br>
{<br>
    public partial class Form1 : Form<br>
    {<br>
        public Form1()<br>
        {<br>
            InitializeComponent();<br>
        }<br>
    }<br>
}<br>
<br>
<br>
Error:<br>
<br>
An unhandled exception of type &#39;System.BadImageFormatException&#39; occurred in Exemplo0.exe<br>
<br>
Could not load file or assembly &#39;vtkFormsWindow, Version = 1.0.2386.19730, Culture = neutral,<br>
PublicKeyToken = null&#39; or one of its dependencies. An attempt was made to load a program with an incorrect format.<br>
<br>
<br>
<br>
I am using:<br>
<br>
VTK-5.01-control-1.1<br>
VTK-5.01-wrap-1.1-bin<br>
VTK-5.01-wrap-1.1-src<br>
<br>
----- Mensagem original -----<br>
De: <a href="mailto:lindeval@dmat.ufrr.br">lindeval@dmat.ufrr.br</a><br>
Para: <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>
Enviadas: Sábado, 25 de Setembro de 2010 20:31:53 (GMT-0300) Auto-Detected<br>
Assunto: Instalation of Windows 7<br>
<div><div></div><div class="h5"><br>
Hello everyone! I have the following problem: I can not install on Windows 7 VtkDotNet with MSVS 2008 and MSVS 2010. But I can install, MSVS 2008, Windows Vista and Windows XP without problems. Has anyone managed to install in Windows 7?<br>


_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
</div></div></blockquote></div><br>