Shoutbox

How to use Interop.Call2?? - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Thread: How to use Interop.Call2?? (/showthread.php?tid=72223)

How to use Interop.Call2?? by chongsk on 03-01-2007 at 04:03 PM

Can this command use for an external dll program that I wrote in C# language?
If can , how i use it?

I try to use it in this way:

function OnEvent_ChatWndSendMessage(chatWnd,message)
{
   if(message=='test')
   {
     message=Interop.Call2("plus_2.Class1.dll","hello");
     
   }
return message;
}
I want if i type "test" in the chat window then the dll file that i created will be call and return a string value and replace the text that i want to send out . 


RE: How to use Interop.Call2?? by vikke on 03-01-2007 at 07:13 PM

I think you should use ActiveX objects. Create an activex by doing:

code:
var oActiveX = new ActiveXObject("YourClass.YourObject");