Hi,
I'm using the script editor in Messenger Plus to load a dll I created using
Visual Studio (class library project in vb.net).
The code of the dll looks like this:
code:
Public Class Msg
    Public Sub New()
    End Sub
    Public Function Display() As Boolean
        MsgBox("hello world")
        Return True
    End Function
End Class
and here is the call from the script:
code:
function OnEvent_ChatWndCreated(ChatWnd)
{
 var externLib = MsgPlus.ScriptFilesPath + "\\msn.dll";
 MsgPlus.DisplayToast("", externLib);
 Interop.Call(externLib, "Display");
}
the error returned is :
Interop.Call could not locate the function "Display"
So I assume the dll was found but not the function withing the dll
Does anyone knows what could be wrong there ?
thanks