Could anyone please explain with a sample…?
How can I return an integer/String from NPAPI plugin(Not using FireBreath) to JavaScript?
I searched a lot ..but can’t get a relevant answer.
Could anyone please explain with a sample…? How can I return an integer/String from
Share
Found a solution.
Returning a string from NPAPI plugin
char* npOutString = (char *)pNetscapefn->memalloc(strlen(StringVariable) + 1);if (!npOutString)return false;
strcpy(npOutString, StringVariable);
STRINGZ_TO_NPVARIANT(npOutString, *result);