Did you not see my response to this thread the other day....?<br><br><br>&nbsp; The first three lines of vtkMFCWindow.cpp are the culprit. They read:<div><br></div><div>&nbsp; #ifndef WINVER &nbsp; &nbsp;// Allow use of features specific to Windows 95 and Windows NT 4 or later.</div>
<div>&nbsp; #define WINVER 0x0400</div>
<div>&nbsp; #endif</div><div><br></div><div>&nbsp; Remove them or comment them out and it should work ok with VS2008.</div><div><br></div><div>&nbsp; Sorry for the inconvenience....</div><div><br></div><div><br></div><div>HTH,</div><div>
David<br><br><br></div><br><br><div class="gmail_quote">On Sun, Feb 1, 2009 at 11:27 PM, Alon Mozes <span dir="ltr">&lt;<a href="mailto:amozes77@yahoo.com">amozes77@yahoo.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td style="font-family: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; font-size: inherit; line-height: inherit; font-size-adjust: inherit; font-stretch: inherit;" valign="top">
<div>Not sure why I had to disable video for windows.&nbsp; I just know that I compiled and many errors seems to come from a conflict there (with the vtk rendering lib if I remember correctly).&nbsp; I got rid of that and still have one problem with the MFC lib which I know I need.&nbsp; Anyone out there compile VTK with Visual Studio 2008 while keeping the MFC flag?&nbsp; Is this a problem with my Windows settings somehow?&nbsp; My Visual Studio settings?&nbsp; Or VTK?</div>

<div>&nbsp;</div>
<div>Thanks,</div>
<div>Alon<br><br>--- On <b>Thu, 1/29/09, Jim <i>&lt;<a href="mailto:jiksed@yahoo.com" target="_blank">jiksed@yahoo.com</a>&gt;</i></b> wrote:<br></div>
<blockquote style="border-left: 2px solid rgb(16, 16, 255); padding-left: 5px; margin-left: 5px;">From: Jim &lt;<a href="mailto:jiksed@yahoo.com" target="_blank">jiksed@yahoo.com</a>&gt;<div class="Ih2E3d"><br>Subject: Re: [vtkusers] Compile with Visual Studio 2008<br>
</div>To: &quot;Alon Mozes&quot; &lt;<a href="mailto:amozes77@yahoo.com" target="_blank">amozes77@yahoo.com</a>&gt;, <a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a><br>Date: Thursday, January 29, 2009, 8:14 AM<div>
<div></div><div class="Wj3C7c"><br><br>
<div>
<div>I am doing the same thing and got a bunch of errors. I wonder why you have to turn off VTK_USE_VIDEO_FOR_WINDOWS? Thank you.</div>
<div>&nbsp;</div>
<div><br><b><i>Alon Mozes &lt;<a href="mailto:amozes77@yahoo.com" target="_blank">amozes77@yahoo.com</a>&gt;</i></b> wrote:</div>
<blockquote style="border-left: 2px solid rgb(16, 16, 255); padding-left: 5px; margin-left: 5px;">
<table border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td valign="top">
<div>Hi All,</div>
<div>I have a great project using VTK/ITK in an older version of Visual Studio.&nbsp; I need to upgrade to the latest version of VS (Visual Studio 2008 Professional Edition).&nbsp; I&#39;ve found that I must recompile VTK/ITK to properly do so.&nbsp; I&#39;ve started from scratch and installed the latest CMake 2.6&nbsp;which offers an option to use the Visual Studio 2008 compiler and VTK 5.2.1.&nbsp; For the configuration, I turn on VTK_USE_MFC (via VTK_USE_GUISUPPORT) and VTK_RENDERING.&nbsp; Then I compile the ALL_BUILD in Visual Studio and I get several errors.&nbsp; I reconfigured CMake to turn off the VTK_USE_VIDEO_FOR_WINDOWS and all but one error goes away.&nbsp; I&#39;m still stuck with the following failure (which seems to be in the vtkMFC package which I think&nbsp;is critical for me):</div>

<div>&nbsp;</div><font size="1">
<div>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\sdkddkver.h(217) : fatal error C1189: #error : _WIN32_WINNT settings conflicts with _WIN32_IE setting</div></font>
<div>&nbsp;</div>
<div>When I dig a little, I&#39;m taken to the following lines of code:</div>
<div>&nbsp;</div><font size="2" color="#0000ff"><font size="2" color="#0000ff">
<div>#if</div></font></font><font size="2"> ((_WIN32_WINNT &lt; _WIN32_WINNT_WIN2K) &amp;&amp; (_WIN32_IE &gt; _WIN32_IE_IE60SP1))</font></td></tr></tbody></table></blockquote></div><font size="2" color="#808080"><font size="2" color="#808080">
<div>#error _WIN32_WINNT settings conflicts with _WIN32_IE setting</div></font></font><font size="2" color="#0000ff"><font size="2" color="#0000ff">
<div>#endif</div>
<div>&nbsp;</div>
<div><font color="#000000">Its clearly passing this conditional and triggering this error.&nbsp; The weird thing is that the first part of the conditional should be 0 (the values seem to be 0x0600 &lt; 0x0500) so the whole thing should not pass.&nbsp; What&#39;s going on here?&nbsp; Any help would be greatly appreciated.</font></div>

<div><font color="#000000"></font>&nbsp;</div>
<div><font color="#000000">Thanks for the help.</font></div></font></font></div></div></blockquote></td></tr></tbody></table><div><div></div><div class="Wj3C7c"><br>_______________________________________________<br>This is the private VTK discussion list.<br>
Please keep messages on-topic. Check the FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><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>
<br>
<div></div><br>

      </div></div><br>_______________________________________________<br>
This is the private VTK discussion list.<br>
Please keep messages on-topic. Check the FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><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>
<br></blockquote></div><br>