Ok so your problem was related to the MFC classes, which I guess are quite old.<br>Good to know that you finally solved the issue.<br><br>Regards,<br>J.<br><br><div class="gmail_quote">---------- Forwarded message ----------<br>

From: <b class="gmail_sendername">ChenDawnWind</b> <span dir="ltr">&lt;<a href="mailto:cybfly1@hotmail.com">cybfly1@hotmail.com</a>&gt;</span><br>Date: 2013/1/8<br>Subject: RE: [vtkusers] VTK with WIN8 64bit &amp;&amp; VS2012<br>

To: Joachim Pouderoux &lt;<a href="mailto:joachim.pouderoux@kitware.com">joachim.pouderoux@kitware.com</a>&gt;<br><br><br><div><div style="font-family:&quot;Microsoft YaHei UI&quot;,Calibri,&quot;Segoe UI&quot;,Meiryo,&quot;Microsoft JhengHei UI&quot;,&quot;Malgun Gothic&quot;,&quot;Khmer UI&quot;,&quot;Nirmala UI&quot;,Tunga,&quot;Lao UI&quot;,Ebrima,sans-serif;font-size:16px">

<div>Thanks for your help, today i rebuild the solution and replace the</div><div>&nbsp;#define _WIN32_WINNT in several files of projects:</div><div>stdafx.h in project:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; vtkDLG、vtkMDI、vtkSDI、Win32SampleMFC、</div>

<div>&nbsp;vtkMFCWindow.cpp in project: vtkMFC</div><div>&nbsp;</div><div>like this:</div><div>&nbsp;#ifndef WINVER&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br>&nbsp;#define WINVER&nbsp;0x0602&nbsp;</div><div>&nbsp;</div><div>#ifndef _WIN32_WINNT&nbsp;&nbsp;&nbsp;&nbsp;<br>&nbsp;#define _WIN32_WINNT&nbsp;0x0602&nbsp;&nbsp;</div>

<div>&nbsp;</div><div>#if _MSC_VER &gt;= 1300<br>&nbsp;#ifndef _WIN32_WINDOWS&nbsp;&nbsp;&nbsp;<br>&nbsp;#define _WIN32_WINDOWS&nbsp;0x0602&nbsp;<br>&nbsp;#endif<br>&nbsp;#endif<br>&nbsp;<br>&nbsp;#ifndef _WIN32_IE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br>&nbsp;#define _WIN32_IE&nbsp;0x0A00&nbsp;<br>&nbsp;#endif</div><div>&nbsp;</div><div>

Then click the build option and errors disappear, </div><div>Cone6 project works well.</div><div>Best Regards!</div><div>&nbsp;</div><div>发自 Windows 邮件</div><div>&nbsp;</div>        <div style="border-top-color:rgb(229,229,229);border-top-width:2px;border-top-style:solid">

                <b>发件人:</b>&nbsp;Joachim Pouderoux<br>                <b>发送时间:</b>&nbsp;2013年1月7日 21:55<br>                <b>收件人:</b>&nbsp;ChenDawnWind<br>                        <b>抄送:</b>&nbsp;<a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a><br>                <b>主题:</b>&nbsp;Re: [vtkusers] VTK with WIN8 64bit &amp;&amp; VS2012<br>

        </div><div><div class="h5">        <div>&nbsp;</div>Hello,<br><br>I have already compiled VTK on Win8 64bit with VS 2012 without any problem!<br>Could you give some more details on how you are trying to achieve the compilation?<br>
Which version of VTK?  Which version of CMake? And which version of VS2012 do you use?<br>


Reading your mail again, I am not sure if you are trying to compile VTK or one of your project based on VTK with a binary version of VTK you downloaded?<br><br>Regards,<br><br><div class="gmail_quote">2013/1/7 ChenDawnWind <span dir="ltr">&lt;<a href="mailto:cybfly1@hotmail.com" target="_blank">cybfly1@hotmail.com</a>&gt;</span><br>



<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid">


<div><div dir="ltr">Dear VTK org:<div><br><div>Very pleased when i get to know VTK.</div><div>But when i want to use it in my system, i find it does not work.</div><div>And my environment is <b>WIN8 64 BIT</b> with <b>VS2012</b>.</div>



<div>And each time when i try to build the project it showed&nbsp;</div><div>ERROR: This file requires _WIN32_WINNT to be #defined at least to 0x0403. Value 0x0501 or higher is recommended.<br>Even when i modify the&nbsp;_WIN32_WINNT&nbsp;to&nbsp;0x0602(in stdafx.h), the problem still appears.</div>



<div>And when i search for help, i found all the source of VTK is 32bit, so i want to know what can</div><div>i do if i wanna VTK worked in my environment?</div><div>If you have the solution please tell me about the detail.</div>



<div>(Maybe from cmake option to build opthion)<br>Thank you very much!</div><div>:)</div><div><br>DawnWind.Chen<div>CSU</div><div><div><span></span><a title="发音"></a><u></u><u></u><div><a title="查看单词详细释义" href="#13c17edf46601e2f_13c1527f5d84d8da_"></a><a title="关闭查询窗"></a></div>



<br style="clear:both"></div><div>&nbsp;</div></div></div></div>                                               </div></div>
<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>
<br></blockquote></div><br><br clear="all"><br>-- <br><b>Joachim Pouderoux</b><br><blockquote style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid">

<font size="1"><i>PhD, R&amp;D Enginee</i>r</font> <br>

<b><font size="1"><a href="http://www.kitware.fr" target="_blank">Kitware SAS</a></font></b><br></blockquote>

</div></div></div></div></div><br><br clear="all"><br>-- <br><b>Joachim Pouderoux</b><br><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><font size="1"><i>PhD, R&amp;D Enginee</i>r</font> <br>

<b><font size="1"><a href="http://www.kitware.fr" target="_blank">Kitware SAS</a></font></b><br></blockquote>