Hi,

I was wondering if I could bind one C++ function to handle any member
functions of a particular object. For example, in the following JS
code:

var fs = new ActiveXObject('Scripting.FileSystemObject');
function f()
{
      fs.DeleteFile('c:\\ht.hta');
}

in order to handle the instantiation of 'ActiveXObject' and the
corresponding use of it's methods ('DeleteFile', etc.), I was
wondering if it would be possible to bind one C++ callback to all
member functions of the 'ActiveXObject'. The reason I'm trying to do
this is that the member functions of the 'ActiveXObject' instances
vary based on it's type, while I'm trying to simply hook into the JS
code and trace the calls in the script.

Any suggestions would be greatly appreciated.

Thanks,
Ravi



--~--~---------~--~----~------------~-------~--~----~
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to