View Single Post
  #3 (permalink)  
Old April 16th, 2005, 03:07 PM
merediths merediths is offline
Authorized User
 
Join Date: Jul 2003
Location: , , .
Posts: 60
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to merediths
Default


 hmmm I think he's trying to do that without access to the source code, judging by his reference to the Reflection API and the fact that he's writing an interperter, such that if I produced an object named TestObject with a method SomeFunc() and gave him only the bytecode, he would be able to make his interperter execute TestObject.SomeFunc().
 There's no simple way to examine the structure of a C++ class that I'm aware of at runtime, similiar to the Reflection API in java. It's possible, but non-trivial .. you would need to implement code to examine, for example, the VFUNCTION table and such. That is, you would essentially have to write your own analog to the Reflection API.
 You might want to look at the source code for some open source debuggers (e.g. GDB) .. perhaps that would get you started on your way.

Regards
Meredith Shaebanyan

Reply With Quote