<DIV>
<DIV>Hi, David, </DIV>
<DIV>&nbsp; I have used vtkStdString just like you suggest. and I want to add some notation in the render window. I don't think the usage of vtkStdString is wrong.&nbsp; here is part of my codes :</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp; #include &lt;vtkStdString.h&gt;</DIV>
<DIV>&nbsp; #include &lt;vtkScaledTextActor.h&gt;</DIV>
<DIV>&nbsp; void main()</DIV>
<DIV>&nbsp; {</DIV>
<DIV>&nbsp; vtkStdString str("Images");</DIV>
<DIV>&nbsp; vtkScaledTextActor * text = vtkScaledTextActor::New();</DIV>
<DIV>&nbsp; text-&gt;SetInput(str);</DIV>
<DIV>&nbsp; ... ...</DIV>
<DIV>&nbsp; }</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp; but I always get a error when I compile my codes :</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp; <STRONG>Cannot open include file: 'vtkstd/string': No such file or directory</STRONG></DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp; but vtkstd/string doesn't exist in vtk, and I also could not find it. </DIV>
<DIV>&nbsp; could you tell me how to modify it if I want to use class vtkStdString?</DIV>
<DIV>&nbsp; thank you!</DIV>
<DIV>&nbsp; MJ</DIV>
<DIV> </DIV>
<DIV>&nbsp;</DIV>
<DIV style="PADDING-RIGHT: 0px; PADDING-LEFT: 0px; FONT-SIZE: 12px; PADDING-BOTTOM: 2px; PADDING-TOP: 2px; FONT-FAMILY: Arial Narrow">------------------ Ô­Ê¼Óʼþ ------------------</DIV>
<DIV style="FONT-SIZE: 12px">
<DIV id=menu_sender>&nbsp;</DIV></DIV>
<DIV>&nbsp;</DIV>
<DIV style="FONT-WEIGHT: normal">Are you using CMake to build your console application?<BR><BR>See any of the projects in the VTK/Examples folder for example CMakeLists.txt files that show how to build a project that links to VTK using CMake. From such a project, using vtkStdString should simply be a matter of:<BR><BR>#include "vtkStdString.h"<BR><BR>void TestFunc()<BR>{<BR>&nbsp; vtkStdString s("hi there");<BR>&nbsp; // do something useful with s here...<BR>}<BR><BR>What is the error you get if you try to use vtkStdString?<BR><BR><BR>
<DIV class=gmail_quote>On Sun, Apr 6, 2008 at 9:43 AM, Mark Jefferson &lt;<A href="mailto:mark.jefferson@qq.com" target=_blank><FONT color=#1e5494>mark.jefferson@qq.com</FONT></A>&gt; wrote:<BR>
<BLOCKQUOTE class=gmail_quote style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
<DIV>Hi, David,</DIV>
<DIV>&nbsp; I have found vtkstd in CMakeLists.txt, but I don't know how to do next? maybe, should I recompile VTK using CMake again? but I have recompile vtk for many times, I still could not use class vtkStdString.</DIV>
<DIV>&nbsp; MJ</DIV></BLOCKQUOTE></DIV></DIV></DIV>