I'm trying to do this right now. Is this still the correct way in the 
latest build?

On Friday, 19 July 2013 12:05:46 UTC+8, Richard S wrote:
>
> I've gotten then accessors to work. My problem was that the methods were 
> not static.
>
> On Thursday, July 18, 2013 9:09:07 PM UTC-4, Richard S wrote:
>>
>> 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/d/optout.

Reply via email to