[vtkusers] Fwd: VTK with WIN8 64bit && VS2012

Joachim Pouderoux joachim.pouderoux at kitware.com
Tue Jan 8 03:32:58 EST 2013


Ok so your problem was related to the MFC classes, which I guess are quite
old.
Good to know that you finally solved the issue.

Regards,
J.

---------- Forwarded message ----------
From: ChenDawnWind <cybfly1 at hotmail.com>
Date: 2013/1/8
Subject: RE: [vtkusers] VTK with WIN8 64bit && VS2012
To: Joachim Pouderoux <joachim.pouderoux at kitware.com>


Thanks for your help, today i rebuild the solution and replace the
 #define _WIN32_WINNT in several files of projects:
stdafx.h in project:
vtkDLG、vtkMDI、vtkSDI、Win32SampleMFC、
 vtkMFCWindow.cpp in project: vtkMFC

like this:
 #ifndef WINVER
 #define WINVER 0x0602

#ifndef _WIN32_WINNT
 #define _WIN32_WINNT 0x0602

#if _MSC_VER >= 1300
 #ifndef _WIN32_WINDOWS
 #define _WIN32_WINDOWS 0x0602
 #endif
 #endif

 #ifndef _WIN32_IE
 #define _WIN32_IE 0x0A00
 #endif

Then click the build option and errors disappear,
Cone6 project works well.
Best Regards!

发自 Windows 邮件

 *发件人:* Joachim Pouderoux
*发送时间:* 2013年1月7日 21:55
*收件人:* ChenDawnWind
*抄送:* vtkusers at vtk.org
*主题:* Re: [vtkusers] VTK with WIN8 64bit && VS2012

Hello,

I have already compiled VTK on Win8 64bit with VS 2012 without any problem!
Could you give some more details on how you are trying to achieve the
compilation?
Which version of VTK? Which version of CMake? And which version of VS2012
do you use?
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?

Regards,

2013/1/7 ChenDawnWind <cybfly1 at hotmail.com>

> Dear VTK org:
>
> Very pleased when i get to know VTK.
> But when i want to use it in my system, i find it does not work.
> And my environment is *WIN8 64 BIT* with *VS2012*.
> And each time when i try to build the project it showed
> ERROR: This file requires _WIN32_WINNT to be #defined at least to 0x0403.
> Value 0x0501 or higher is recommended.
> Even when i modify the _WIN32_WINNT to 0x0602(in stdafx.h), the problem
> still appears.
> And when i search for help, i found all the source of VTK is 32bit, so i
> want to know what can
> i do if i wanna VTK worked in my environment?
> If you have the solution please tell me about the detail.
> (Maybe from cmake option to build opthion)
> Thank you very much!
> :)
>
> DawnWind.Chen
> CSU
> ****
> <#13c17edf46601e2f_13c1527f5d84d8da_>
>
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>


-- 
*Joachim Pouderoux*

*PhD, R&D Enginee*r
*Kitware SAS <http://www.kitware.fr>*




-- 
*Joachim Pouderoux*

*PhD, R&D Enginee*r
*Kitware SAS <http://www.kitware.fr>*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20130108/394b63a3/attachment.htm>


More information about the vtkusers mailing list