C# DLL Events Catching.
-
Hi! I have build C# DLL with few function and Registered it successfully and also consuming it through Javascript ActiveXObject. So far All is good. Now I want to raise one Event in C# Dll and want that event to be handled by Javascript Is that possible to catch event in Javascript which is thrown by C# DLL, If yes can you please help me. Thanks!
Develop2Program & Program2Develop
-
Hi! I have build C# DLL with few function and Registered it successfully and also consuming it through Javascript ActiveXObject. So far All is good. Now I want to raise one Event in C# Dll and want that event to be handled by Javascript Is that possible to catch event in Javascript which is thrown by C# DLL, If yes can you please help me. Thanks!
Develop2Program & Program2Develop
-
Thanks for your reply, But no this is not what I mean I want to raise an Event in C# DLL class and this should be Caught in Javascript Code
var myObj
myObj = new ActiveXObject("myDLL.myClass");
myObj.myPropertyOne="value1";
myObj.processValue();Now if I through Event with value 0 Then how can I get the Event in Javascript. Thanks!
Develop2Program & Program2Develop
-
Thanks for your reply, But no this is not what I mean I want to raise an Event in C# DLL class and this should be Caught in Javascript Code
var myObj
myObj = new ActiveXObject("myDLL.myClass");
myObj.myPropertyOne="value1";
myObj.processValue();Now if I through Event with value 0 Then how can I get the Event in Javascript. Thanks!
Develop2Program & Program2Develop
-
Look, I just gave you an example of how to communicate between the C# and JavaScript. If you can't figure out how to do it then I suggest you do something else!
Loop {
response = checkValue();
if (response != 0)
Do Event
wait(2 seconds).
}hmmm pie
Thanks for your efforts, I will try other resources!
Develop2Program & Program2Develop