Re: [Plib-users] puText
Brought to you by:
sjbaker
From: Steve B. <sjb...@ai...> - 2005-09-23 02:06:26
|
Tinoshi Kitazawa wrote: > puDial::setLegend( ctime ( & t ) ) works wery well. > puDial::setLegend("HELLO!") works very well. > puDial::setLegend(my_string) where my_string is > > char my_string[80]; > sprintf(my_string,"%.3f",float_value); I think that's because setLegend doesn't make a copy of the string - it just keeps a pointer to it. In your example, 'my_string' goes out of scope maybe?!? ---------------------------- Steve Baker ------------------------- HomeEmail: <sjb...@ai...> WorkEmail: <sj...@li...> HomePage : http://www.sjbaker.org Projects : http://plib.sf.net http://tuxaqfh.sf.net http://tuxkart.sf.net http://prettypoly.sf.net -----BEGIN GEEK CODE BLOCK----- GCS d-- s:+ a+ C++++$ UL+++$ P--- L++++$ E--- W+++ N o+ K? w--- !O M- V-- PS++ PE- Y-- PGP-- t+ 5 X R+++ tv b++ DI++ D G+ e++ h--(-) r+++ y++++ -----END GEEK CODE BLOCK----- |