<DIV>
<DIV>Hi, David, </DIV>
<DIV> 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. here is part of my codes :</DIV>
<DIV> </DIV>
<DIV> #include <vtkStdString.h></DIV>
<DIV> #include <vtkScaledTextActor.h></DIV>
<DIV> void main()</DIV>
<DIV> {</DIV>
<DIV> vtkStdString str("Images");</DIV>
<DIV> vtkScaledTextActor * text = vtkScaledTextActor::New();</DIV>
<DIV> text->SetInput(str);</DIV>
<DIV> ... ...</DIV>
<DIV> }</DIV>
<DIV> </DIV>
<DIV> but I always get a error when I compile my codes :</DIV>
<DIV> </DIV>
<DIV> <STRONG>Cannot open include file: 'vtkstd/string': No such file or directory</STRONG></DIV>
<DIV> </DIV>
<DIV> but vtkstd/string doesn't exist in vtk, and I also could not find it. </DIV>
<DIV> could you tell me how to modify it if I want to use class vtkStdString?</DIV>
<DIV> thank you!</DIV>
<DIV> MJ</DIV>
<DIV> </DIV>
<DIV> </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> </DIV></DIV>
<DIV> </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> vtkStdString s("hi there");<BR> // 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 <<A href="mailto:mark.jefferson@qq.com" target=_blank><FONT color=#1e5494>mark.jefferson@qq.com</FONT></A>> 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> 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> MJ</DIV></BLOCKQUOTE></DIV></DIV></DIV>