Subj : Re: RTTI in C++ To : borland.public.cpp.borlandcpp From : "Ed Mulroy [TeamB]" Date : Wed Oct 08 2003 03:32 pm You have posted in the newsgroup for the old Borland C++ compiler. There is little in common between that compiler and Delphi. The current compiler, C++ Builder, has much in common with Delphi. If you have C++ Builder then it would be best to post in a C++ Builder newsgroup, a newsgroup containing the word 'cppbuilder' so that those with knowledge of the product would see your message. My guess is that this group might be a good one for a message such as yours: borland.public.cppbuilder.language.cpp .. Ed > Jason Southwell wrote in message > news:3f84522b$1@newsgroups.borland.com... > First some background... > > I'm an experienced Delphi developer and haven't dug into C++ in about 7 > years. At the time, I was just getting into C++ from C... Then I > found Delphi and haven't touched C++ much since. > > So that gives you an idea of my experience level. > > In Delphi, we have complete access to classes and their properties, > methods and events via RTTI. I'd like to do the same with C++. > > For example, if I have the string > > "+TmyClass:filename='test.html':active=true" > > I would like to be able to parse that out at runtime to do the > following. > > 1. Create an instance of TMyClass. > 2. Assign the property filename with the value 'test.html' > 3. Assign the property active with the value true. > > In Delphi this is easy using the functions in TypInfo.pas. > > Can anyone give me pointers on how I might do this in C++? .