flexo wrote:
>In my solution, I'm trying to pass a javascript object to the C++ component as jsval parameter. Now if I make an IDL file with a function that has an input parameter jsval, the generated header file makes the input parameter a const jsval. Does this mean I can't change a passed object from javascript to the C++ component from within the C++ component?
>
>
I'm no JSAPI hacker but doesn't jsval behave as a union type that can
contain a (const) pointer to a non-const object?
>Also I include the jsapi.h file for the function JS_ValueToObject, but when building the component it says unresolved external symbol _imp_JS_ValueToObject. Do I need to include some specific dll file or something that contains the implementation of the functions in jsapi.h to build the component?
>
>
mozjs.lib/dll probably.
--
Warning: May contain traces of nuts.