本文整理汇总了C++中StringA::ToStringW方法的典型用法代码示例。如果您正苦于以下问题:C++ StringA::ToStringW方法的具体用法?C++ StringA::ToStringW怎么用?C++ StringA::ToStringW使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类StringA
的用法示例。
在下文中一共展示了StringA::ToStringW方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: strlen
void ViewOfCollection2::Build()
{
ASSERT(0);
#if 0
UI::TreeControl* pTree = new UI::TreeControl;
pTree->AddColumn(new UI::TextString(WSTR("Name")));
//pTree->m_treeHeader->AddColumn(new UI::TextString(L"Value"));
UI::TreeItemChildren* children = new UI::TreeItemChildren(pTree);
unsigned long count = m_pCollection->GetCount();
for (int i = 0; i < count; i++)
{
Object* child = m_pCollection->GetItem(i);
StringA* classname = child->GetType()->m_qname;
/*
{
void* vtable = *(void**)child.m_p;
rti* p3 = ((rti**)vtable)[-1];
int count = p3->m_classHierarchyDescriptor->count;
BaseClassDescriptor** table = p3->m_classHierarchyDescriptor->m_baseClassArray;
Type_Info* ti = (Type_Info*)table[0]->typedesc;
classname = ti->name() + strlen("class ");
}
*/
UI::TreeItem* row = new UI::TreeItem(pTree);
m_rows.Add(row);
row->AppendColumnCell(new UI::TextString(classname->ToStringW()));
children->AppendItem(row);
}
pTree->set_Children(children);
set_VisualTree(pTree);
#endif
}