rtti
Howto set event handlers with arbitrary type with RTTI in Delphi 2010?
after reading the post How to set event handlers via new RTTI?, I wonder if it is possible to solve this more dynamically. For example I want to set ALL event handlers of any component to nil.[详细]
2022-12-17 13:47 分类:问答What's the lifetime of memory pointed to typeinfo::name()?
In C++ I can use typeid operator to retrieve the name of any polymorphic class: const char* name = typeid( CMyClass ).name();[详细]
2022-12-17 11:40 分类:问答no RTTI on unamed data types
AFAIK the compiler does not generate RTTI if the type is not named. eg: T = 开发者_高级运维array[0..1,0..1] of Integer;[详细]
2022-12-17 08:38 分类:问答Can I ungarble GCC's RTTI names?
Using gcc, when I ask for an object/variable\'s type using typeid, I get a different result from the type_info::name method from what I\'d expect to get on Windows. I Googled around a bit, and found o[详细]
2022-12-17 04:53 分类:问答Boost library for RTTI [closed]
As 开发者_运维技巧it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references,or expertise, but this question will likely so[详细]
2022-12-16 06:19 分类:问答How can I set the $RTTI directive for the entire project?
I\'m working on migrating an old project from Delphi 2007 to Delphi 2010.One thing I\'ve found is that the resulting executable has more than doubled in size, and the original was already quite big.(O[详细]
2022-12-16 05:43 分类:问答C++ RTTI and Derived Classes
My C++ is a bit rusty.Here\'s what I\'m attempting to do: class Cmd { }; class CmdA : public Cmd { }; class CmdB : public Cmd { };[详细]
2022-12-13 21:02 分类:问答how to set array length with delphi 2010 rtti
how to set array length in runtime ? setLength(t.GetProperty(\'Propertys\'),3); ???? unit Unit3; interface[详细]
2022-12-11 20:26 分类:问答Why is type_info declared outside namespace std?
I\'m using VS2005 and the MS implementation of STL. However, the class type_info inis declared outside of \"namespace std\". This creates some problems for third party li开发者_运维问答bs that excepts[详细]
2022-12-11 05:21 分类:问答Trouble playing with indexed propertes via new RTTI [D2010]
ShowMessage(TRttiContext.Create.GetType(TStringList) .GetProperty(\'Strings\').ToString); Above code fails as .GetProperty returns nil on 开发者_Go百科properties like \"Strings\", \"Objects\", \"Val[详细]
2022-12-10 21:25 分类:问答