<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><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;jiksed@yahoo.com&gt;</I></B> wrote:<BR></DIV>
<BLOCKQUOTE style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: rgb(16,16,255) 2px solid">From: Jim &lt;jiksed@yahoo.com&gt;<BR>Subject: Re: [vtkusers] Compile with Visual Studio 2008<BR>To: "Alon Mozes" &lt;amozes77@yahoo.com&gt;, vtkusers@vtk.org<BR>Date: Thursday, January 29, 2009, 8:14 AM<BR><BR>
<DIV id=yiv1703933746>
<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;amozes77@yahoo.com&gt;</I></B> wrote:</DIV>
<BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">
<TABLE cellSpacing=0 cellPadding=0 border=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've found that I must recompile VTK/ITK to properly do so.&nbsp; I'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'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'm taken to the following lines of code:</DIV>
<DIV>&nbsp;</DIV><FONT color=#0000ff size=2><FONT color=#0000ff size=2>
<DIV>#if</FONT></FONT><FONT size=2> ((_WIN32_WINNT &lt; _WIN32_WINNT_WIN2K) &amp;&amp; (_WIN32_IE &gt; _WIN32_IE_IE60SP1))</DIV></FONT><FONT color=#808080 size=2><FONT color=#808080 size=2>
<DIV>#error _WIN32_WINNT settings conflicts with _WIN32_IE setting</DIV></FONT></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>
<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'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></TD></TR></TBODY></TABLE><BR>_______________________________________________<BR>This is the private VTK discussion list.<BR>Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ<BR>Follow this link to subscribe/unsubscribe:<BR>http://www.vtk.org/mailman/listinfo/vtkusers<BR></BLOCKQUOTE><BR>
<DIV></DIV></DIV></BLOCKQUOTE></td></tr></table><br>