I've been following along with the embedder's guide, and so far I can get 
static methods to work just fine. However, when I went to move on to the 
Point example, something went wrong. Everything works until I try to use 
SetAccesor. The exact error that VS2010 is giving me is this: "cannot 
convert parameter 2 from 'void (__thiscall Point::* )(v8::Local<T>,const 
v8::PropertyCallbackInfo<v8::Value> &)' to 'v8::AccessorGetterCallback.'" 
(I'm also getting "no instance of overloaded function 
"v8::ObjectTemplate::SetAccessor" matches the argument list," but I'd 
imagine that's caused by the previous error.)

I generated some doxygen files for my build of v8 and checked 
AccessorGetterCallback and AccessorSetterCallback, and they both have the 
same parameters as what my functions have (I copied and pasted just to be 
sure). I hardly have any experience with function pointers, so I have no 
clue what could be going wrong. Something interesting is that this is only 
happening for my getter methods, not the setters. I also commented out the 
deprecated versions of SetAccessor in v8.h because I had a previous problem 
where VS2010 thought I was using the deprecated overload.

-- 
-- 
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users
--- 
You received this message because you are subscribed to the Google Groups 
"v8-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to