[vtkusers] writing integer variable on screen

salih halil sonmez salihhalilsonmez at gmail.com
Tue Aug 25 04:36:22 EDT 2009


hi everyone!
I wan to write somenthing on screen I use this c++ codes.here is begining:

vtkVectorText* vecText = vtkVectorText::New();
    vecText->SetText("vtkVectorText");

I send input like "vtkvectortext" than it is work. but I want to write 1, 2,
3, like something integer.

if I write my variable directly  ;i.e    vecText->SetText(variable);

I get error like :
Error    2    error C2664: 'vtkVectorText::SetText' : cannot convert
parameter "variable_value" from 'int' to 'const char *'

so How do I  write my integer variable!!!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20090825/228bc9a4/attachment.htm>


More information about the vtkusers mailing list