Hi,
I am using javascript to write a metro style application. It has a winRT component written in C++. The component provides a event whose signature is:
public delegate void EventHandler(Platform::String^ path, Windows::Foundation::Collections::IMap<String^, Windows::Foundation::PropertyValue^> ^userData);
How can I consume this event in javascript?
I tried the following code:
var jseventHandler = function (arg1) {};
nativeObject.onsomeevent = jseventHandler;
and also:
var jseventHandler = function (arg1, arg2) {};
nativeObject.onsomeevent = jseventHandler;
But, either way it does not work and I get the following error:
0x800a13e3 - JavaScript runtime error: The function 'jseventHandler' has an invalid signature and cannot be called.
Please Help.