What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » can't call my dll's function

can't call my dll's function
Author: Message:
graphicsxp
New Member
*


Posts: 6
Joined: Sep 2006
O.P. can't call my dll's function
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
09-03-2006 09:51 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
can't call my dll's function - by graphicsxp on 09-03-2006 at 09:51 PM
RE: can't call my dll's function - by Mnjul on 09-07-2006 at 12:21 PM
RE: can't call my dll's function - by graphicsxp on 09-08-2006 at 10:04 PM
RE: can't call my dll's function - by ShawnZ on 09-08-2006 at 10:06 PM
RE: can't call my dll's function - by graphicsxp on 09-08-2006 at 10:09 PM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On