devo questa funzione nel dllCome convertire v8 :: String a const char *
static COMMANDERDLL_API int InsertCodeBar(const char* pszBuffer);
nel mio nodo addon ho questa funzione
void InsertCodeBarWrapper(const FunctionCallbackInfo<Value>& args){
Isolate* isolate = args.GetIsolate();
Local<Function> cb = Local<Function>::Cast(args[1]);
Local<String> bar = args[0]->ToString();
const unsigned argc = 1;
Local<Value> argv[argc] = { CSGPCommander::InsertCodeBar(bar) };
cb->Call(isolate->GetCurrentContext()->Global(), argc, argv);
}
quando provo la compilazione, il nodo-Gyp errore di tornare: "non può convertire argomento 1 da 'v8 :: locale' a 'const char *'
come convertire v8 :: String a const char *
?