<DIV id=RTEContent> <DIV>I use vtkdotnetwrap(see the link below) for vtk in vs.net2003<BR><A href="http://herakles.zcu.cz/research/vtk.net/download/index.html">http://herakles.zcu.cz/research/vtk.net/download/index.html</A></DIV> <DIV> </DIV> <DIV><BR><B><I>rex073 <rex073@163.com></I></B> wrote:</DIV> <BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">Why not use VTK-4.4-LatestRelease.exe instead of build vtk libs and dlls by yourself?<BR>I think there should be some conflicts between STL and vtkIO.<BR>One simple way is to add std:: before every keyword such as "cout". <BR><BR>But I don't know how to set the flag of "VTK_USE_ANSI_STDLIB" in VCStudio.<BR>Would you please show me? Thanks.<BR><BR><BR><BR><BR>>Hi,<BR>><BR>>I think you should build your app with the <BR>>VTK_USE_ANSI_STDLIB compiler flag.<BR>><BR>>greets<BR>> Ingo<BR>><BR>><BR>>---<BR>>Dr.-Ing. Ingo H. de
Boer<BR>><BR>>Polytec GmbH<BR>>Polytec-Platz 1-7, 76337 Waldbronn, Germany<BR>>phone: ++49 7243 604 106<BR>>fax : ++49 7243 604 255<BR>> <BR>><BR>>> -----Original Message-----<BR>>> <BR>>> Hi all,<BR>>> <BR>>> I am brand new to using vtk, I would like to add vtk <BR>>> capabilities to an<BR>>> existing MFC app created in VS .NET 2003. I am starting by <BR>>> trying to build<BR>>> the simplest of MFC apps, but without success. I perused the <BR>>> mailing list<BR>>> archive but couldn't find an answer for my problems. What I <BR>>> have done so<BR>>> far:<BR>>> <BR>>> Downloaded VTK-4.4-LatestRelease.zip, unzipped to C:\VTK<BR>>> Used CMake 2.2 to create the .Net 2003 solution (including <BR>>> building the<BR>>> dll's)<BR>>> Open the solution, built ALL_BUILD, no errors (about 15 minutes on my<BR>>> machine)<BR>>> Moved the created dll's
into Windows/System32<BR>>> <BR>>> In VS .NET:<BR>>> <BR>>> Added all the directories for the includes in the<BR>>> Tools/Options/Projects/VC++ Directories (C:\vtk, <BR>>> C:\vtk\common, etc. etc.)<BR>>> Did the same for the lib files (C:\vtk\bin\debug) <BR>>> (Should I have built as the release version instead of Debug?)<BR>>> <BR>>> Then built a simple SDI MFC app called testvtk, put a button on the<BR>>> interface, and tried to add the code from the cone.cxx file in the<BR>>> testvtkView.cpp to get the cone to display with a button <BR>>> push. The header<BR>>> files are all found just fine, but I get many (>100) errors in files<BR>>> provided in MSVC .NET ?!?! These seem to be related to IO <BR>>> and utilities,<BR>>> some examples of where the errors occur:<BR>>> <BR>>> c:\Program Files\Microsoft Visual Studio .NET<BR>>> 2003\Vc7\include\xutility(862):
error C2143: syntax error : <BR>>> missing ';'<BR>>> before '<'<BR>>> c:\Program Files\Microsoft Visual Studio .NET<BR>>> 2003\Vc7\include\streambuf(320): error C2146: syntax error : <BR>>> missing ';'<BR>>> before identifier 'xsputn'<BR>>> c:\Program Files\Microsoft Visual Studio .NET<BR>>> 2003\Vc7\include\xstring(1564): error C2947: expecting '>' to <BR>>> terminate<BR>>> template-argument-list, found '>'<BR>>> <BR>>> etc. etc. ad infinitum (ok more than 100 at which point it <BR>>> terminates). <BR>>> These are related to the #includes from the cone.cxx file, <BR>>> the errors appear<BR>>> when the includes are put into the testvtkView.cpp file.<BR>>> <BR>>> Is there a setting I need to change that will prevent this? <BR>>> None of the<BR>>> errors seem to be in any vtk files, but in MS files that they are<BR>>> referencing. Any help would be
greatly appreciated . .<BR>>> <BR>>> <BR>>> Kent<BR>>> <BR>>> <BR>>> Kent Ogden PhD<BR>>> Assistant Professor, Radiology<BR>>> SUNY Upstate Medical University<BR>>> 750 E. Adams Street<BR>>> Syracuse, NY 13210<BR>>> <BR>>> email: ogdenk@upstate.edu <BR>>> voice: (315) 464-5083<BR>>> fax: (315) 464-5095<BR>>> _______________________________________________<BR>>> This is the private VTK discussion list. <BR>>> Please keep messages on-topic. Check the FAQ at: <BR>>http://www.vtk.org/Wiki/VTK_FAQ<BR>>Follow this link to subscribe/unsubscribe:<BR>>http://www.vtk.org/mailman/listinfo/vtkusers<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><BR>= = = = = = = = = = = = = = = = = = = =<BR><BR><BR>¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡ÖÂ<BR>Àñ£¡<BR><BR><BR>¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡rex073<BR>¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡rex073@163.com<BR>¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡2005-12-23<BR><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> <DIV><BR></DIV></DIV><p>
                <hr size=1> <a href="http://pa.yahoo.com/*http://us.rd.yahoo.com/evt=37474/*http://promo.yahoo.com/broadband/
">Yahoo! DSL</a> Something to write home about. Just $16.99/mo. or less