分页: 1 / 1

ustring?

发表于 : 2007-12-29 0:42
eexpress
‘compose’ 不是 ‘Glib::ustring’ 的成员
ustring u;
u=ustring::compose(format, item, value);
晕的。

发表于 : 2007-12-29 10:28
tipfoo
gtkmm 2.4 documentation(DevHelp)中可以看到:
‘compose’ 不是 ‘Glib::ustring’ 的成员。
你想实现什么啊?

发表于 : 2007-12-30 18:45
eexpress
但是http://www.gtkmm.org/docs/glibmm-2.4/docs/refe ... g.html有这段啊
Formatted output and internationalization
The methods ustring::compose() and ustring::format() provide a convenient and powerful alternative to string streams, as shown in the example below. Refer to the method documentation of compose() and format() for details.
using Glib::ustring;

ustring message = ustring::compose("%1 is lower than 0x%2.",
12, ustring::format(std::hex, 16));

发表于 : 2007-12-30 20:54
tipfoo
你系统里装的 libglibmm 版本是 2.14,而那两个函数刚好是从 2.16 才开始有。:lol::lol::lol:( :( 怎么少了颗牙齿……)
你找找“Since glibmm 2.16”就知道了。

发表于 : 2007-12-31 20:07
eexpress
nnnnnd
这些家伙
还是devhelp不好。不详细。否则不需要看网站的。

发表于 : 2007-12-31 20:11
eexpress
另外,glade-3的下面那个devhelp关联,就是关联的类名。知道如何直接关联到gtkmm的吗?老是关联到gtk+的条目。