<DIV id=RTEContent>  <DIV>I&nbsp;use&nbsp;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>&nbsp;</DIV>  <DIV><BR><B><I>rex073 &lt;rex073@163.com&gt;</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>&gt;Hi,<BR>&gt;<BR>&gt;I think you should build your app with the <BR>&gt;VTK_USE_ANSI_STDLIB compiler flag.<BR>&gt;<BR>&gt;greets<BR>&gt; Ingo<BR>&gt;<BR>&gt;<BR>&gt;---<BR>&gt;Dr.-Ing. Ingo H. de
 Boer<BR>&gt;<BR>&gt;Polytec GmbH<BR>&gt;Polytec-Platz 1-7, 76337 Waldbronn, Germany<BR>&gt;phone: ++49 7243 604 106<BR>&gt;fax : ++49 7243 604 255<BR>&gt; <BR>&gt;<BR>&gt;&gt; -----Original Message-----<BR>&gt;&gt; <BR>&gt;&gt; Hi all,<BR>&gt;&gt; <BR>&gt;&gt; I am brand new to using vtk, I would like to add vtk <BR>&gt;&gt; capabilities to an<BR>&gt;&gt; existing MFC app created in VS .NET 2003. I am starting by <BR>&gt;&gt; trying to build<BR>&gt;&gt; the simplest of MFC apps, but without success. I perused the <BR>&gt;&gt; mailing list<BR>&gt;&gt; archive but couldn't find an answer for my problems. What I <BR>&gt;&gt; have done so<BR>&gt;&gt; far:<BR>&gt;&gt; <BR>&gt;&gt; Downloaded VTK-4.4-LatestRelease.zip, unzipped to C:\VTK<BR>&gt;&gt; Used CMake 2.2 to create the .Net 2003 solution (including <BR>&gt;&gt; building the<BR>&gt;&gt; dll's)<BR>&gt;&gt; Open the solution, built ALL_BUILD, no errors (about 15 minutes on my<BR>&gt;&gt; machine)<BR>&gt;&gt; Moved the created dll's
 into Windows/System32<BR>&gt;&gt; <BR>&gt;&gt; In VS .NET:<BR>&gt;&gt; <BR>&gt;&gt; Added all the directories for the includes in the<BR>&gt;&gt; Tools/Options/Projects/VC++ Directories (C:\vtk, <BR>&gt;&gt; C:\vtk\common, etc. etc.)<BR>&gt;&gt; Did the same for the lib files (C:\vtk\bin\debug) <BR>&gt;&gt; (Should I have built as the release version instead of Debug?)<BR>&gt;&gt; <BR>&gt;&gt; Then built a simple SDI MFC app called testvtk, put a button on the<BR>&gt;&gt; interface, and tried to add the code from the cone.cxx file in the<BR>&gt;&gt; testvtkView.cpp to get the cone to display with a button <BR>&gt;&gt; push. The header<BR>&gt;&gt; files are all found just fine, but I get many (&gt;100) errors in files<BR>&gt;&gt; provided in MSVC .NET ?!?! These seem to be related to IO <BR>&gt;&gt; and utilities,<BR>&gt;&gt; some examples of where the errors occur:<BR>&gt;&gt; <BR>&gt;&gt; c:\Program Files\Microsoft Visual Studio .NET<BR>&gt;&gt; 2003\Vc7\include\xutility(862):
 error C2143: syntax error : <BR>&gt;&gt; missing ';'<BR>&gt;&gt; before '&lt;'<BR>&gt;&gt; c:\Program Files\Microsoft Visual Studio .NET<BR>&gt;&gt; 2003\Vc7\include\streambuf(320): error C2146: syntax error : <BR>&gt;&gt; missing ';'<BR>&gt;&gt; before identifier 'xsputn'<BR>&gt;&gt; c:\Program Files\Microsoft Visual Studio .NET<BR>&gt;&gt; 2003\Vc7\include\xstring(1564): error C2947: expecting '&gt;' to <BR>&gt;&gt; terminate<BR>&gt;&gt; template-argument-list, found '&gt;'<BR>&gt;&gt; <BR>&gt;&gt; etc. etc. ad infinitum (ok more than 100 at which point it <BR>&gt;&gt; terminates). <BR>&gt;&gt; These are related to the #includes from the cone.cxx file, <BR>&gt;&gt; the errors appear<BR>&gt;&gt; when the includes are put into the testvtkView.cpp file.<BR>&gt;&gt; <BR>&gt;&gt; Is there a setting I need to change that will prevent this? <BR>&gt;&gt; None of the<BR>&gt;&gt; errors seem to be in any vtk files, but in MS files that they are<BR>&gt;&gt; referencing. Any help would be
 greatly appreciated . .<BR>&gt;&gt; <BR>&gt;&gt; <BR>&gt;&gt; Kent<BR>&gt;&gt; <BR>&gt;&gt; <BR>&gt;&gt; Kent Ogden PhD<BR>&gt;&gt; Assistant Professor, Radiology<BR>&gt;&gt; SUNY Upstate Medical University<BR>&gt;&gt; 750 E. Adams Street<BR>&gt;&gt; Syracuse, NY 13210<BR>&gt;&gt; <BR>&gt;&gt; email: ogdenk@upstate.edu <BR>&gt;&gt; voice: (315) 464-5083<BR>&gt;&gt; fax: (315) 464-5095<BR>&gt;&gt; _______________________________________________<BR>&gt;&gt; This is the private VTK discussion list. <BR>&gt;&gt; Please keep messages on-topic. Check the FAQ at: <BR>&gt;http://www.vtk.org/Wiki/VTK_FAQ<BR>&gt;Follow this link to subscribe/unsubscribe:<BR>&gt;http://www.vtk.org/mailman/listinfo/vtkusers<BR>&gt;_______________________________________________<BR>&gt;This is the private VTK discussion list. <BR>&gt;Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ<BR>&gt;Follow this link to
 subscribe/unsubscribe:<BR>&gt;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