2012-04-23 57 views
0

我想設置一個數組的Handle<Value>。我是一個初學者到V8,我無法找到如何設置 當我如做:v8設置句柄<Value> array howto?

Persistent<Context> fcontext 
Handle<Value> Arr = Array::New(0); 
Persistent<Function> Func; 
Handle<Value> result = Func->Call(fcontext->Global(), 0, Arr); 

我收到此錯誤:

error C2664: 'v8::Function::Call' : cannot convert parameter 3 from 'v8::Handle<T>' to 'v8::Handle<T> []' 
    1>  with 
    1>  [ 
    1>   T=v8::Value 
    1>  ] 

我如何做一個Handle<Value>的有1個元素的數組?

回答