<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><DIV>Dear David,</DIV>
<DIV> </DIV>
<DIV>Now it is error-free. Thank you.</DIV>
<DIV><BR><BR>--- On <B>Thu, 1/29/09, David Cole <I><david.cole@kitware.com></I></B> wrote:<BR></DIV>
<BLOCKQUOTE style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: rgb(16,16,255) 2px solid">From: David Cole <david.cole@kitware.com><BR>Subject: Re: [vtkusers] Compile with Visual Studio 2008<BR>To: "Jim" <jiksed@yahoo.com><BR>Cc: vtkusers@vtk.org<BR>Date: Thursday, January 29, 2009, 11:48 AM<BR><BR>
<DIV id=yiv1227939056>The first three lines of vtkMFCWindow.cpp are the culprit. They read:
<DIV>
<DIV><BR></DIV>
<DIV>#ifndef WINVER // Allow use of features specific to Windows 95 and Windows NT 4 or later.</DIV>
<DIV>#define WINVER 0x0400</DIV>
<DIV>#endif</DIV>
<DIV><BR></DIV>
<DIV>Remove them or comment them out and it should work ok with VS2008.</DIV>
<DIV><BR></DIV>
<DIV>Sorry for the inconvenience....</DIV>
<DIV><BR></DIV>
<DIV><BR></DIV>
<DIV>HTH,</DIV>
<DIV>David</DIV>
<DIV><BR></DIV><BR>
<DIV class=gmail_quote>On Thu, Jan 29, 2009 at 1:36 PM, David Cole <SPAN dir=ltr><<A href="mailto:david.cole@kitware.com" target=_blank rel=nofollow>david.cole@kitware.com</A>></SPAN> wrote:<BR>
<BLOCKQUOTE class=gmail_quote style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">I am trying to reproduce this issue right now and will let you know what I come up with....
<DIV><BR></DIV><FONT color=#888888>
<DIV><BR>David</DIV></FONT>
<DIV>
<DIV></DIV>
<DIV class=Wj3C7c>
<DIV><BR></DIV>
<DIV><BR>
<DIV class=gmail_quote>On Thu, Jan 29, 2009 at 1:00 PM, Jim <SPAN dir=ltr><<A href="mailto:jiksed@yahoo.com" target=_blank rel=nofollow>jiksed@yahoo.com</A>></SPAN> wrote:<BR>
<BLOCKQUOTE class=gmail_quote style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<DIV>Dear All,</DIV>
<DIV> </DIV>
<DIV>I got exactly the same error (fatal error C1189) on WinXP + VS 2008 in both Release and Debug modes. Any solution to fix the problem? Thank you.
<DIV><BR><BR><B><I>Alon Mozes <<A href="mailto:amozes77@yahoo.com" target=_blank rel=nofollow>amozes77@yahoo.com</A>></I></B> wrote:</DIV></DIV>
<BLOCKQUOTE style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">
<DIV>
<DIV></DIV>
<DIV>
<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. I need to upgrade to the latest version of VS (Visual Studio 2008 Professional Edition). I've found that I must recompile VTK/ITK to properly do so. I've started from scratch and installed the latest CMake 2.6 which offers an option to use the Visual Studio 2008 compiler and VTK 5.2.1. For the configuration, I turn on VTK_USE_MFC (via VTK_USE_GUISUPPORT) and VTK_RENDERING. Then I compile the ALL_BUILD in Visual Studio and I get several errors. I reconfigured CMake to turn off the VTK_USE_VIDEO_FOR_WINDOWS and all but one error goes away. I'm still stuck with the following failure (which seems to be in the vtkMFC package which I think is critical for me):</DIV>
<DIV> </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> </DIV>
<DIV>When I dig a little, I'm taken to the following lines of code:</DIV>
<DIV> </DIV><FONT color=#0000ff size=2><FONT color=#0000ff size=2>
<DIV>#if</DIV></FONT></FONT><FONT size=2>((_WIN32_WINNT < _WIN32_WINNT_WIN2K) && (_WIN32_IE > _WIN32_IE_IE60SP1))</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> </DIV>
<DIV><FONT color=#000000>Its clearly passing this conditional and triggering this error. The weird thing is that the first part of the conditional should be 0 (the values seem to be 0x0600 < 0x0500) so the whole thing should not pass. What's going on here? Any help would be greatly appreciated.</FONT></DIV>
<DIV><FONT color=#000000></FONT> </DIV>
<DIV><FONT color=#000000>Thanks for the help.</FONT></DIV></FONT></FONT></TD></TR></TBODY></TABLE></DIV></DIV></BLOCKQUOTE></BLOCKQUOTE></DIV></DIV></DIV></DIV></BLOCKQUOTE></DIV></DIV></DIV></BLOCKQUOTE></td></tr></table><br>