What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [question] Calling an external DLL

[question] Calling an external DLL
Author: Message:
Griffo
Junior Member
**


Posts: 27
Joined: Apr 2006
RE: [question] Calling an external DLL
I'm having trouble with a DLL call in my script too, however mine was made in VB6.

I made a test DLL with this function:
code:
Public Function Test() As String
Test = "hello"
End Function

...and my script code is:
code:
function OnEvent_Initialize(MessengerStart)
{
Debug.Trace(Interop.Call(MsgPlus.ScriptFilesPath + "\\Project1.dll", "Test"));
}

However, I keep getting this error:
code:
Script is now loaded and ready
Function called: OnEvent_Initialize
Interop.Call failed to locate function "Test"
Error: unknown.
       Line: 4. Code: -2147467259.
Function OnEvent_Initialize returned an error. Code: -2147352567

Any ideas what I am doing wrong? Thanks :)

EDIT: I've tried Interop.Call2 as well, but no luck!

This post was edited on 06-27-2006 at 07:38 PM by Griffo.
06-27-2006 07:10 PM
Profile E-Mail PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
[question] Calling an external DLL - by deAd on 06-25-2006 at 04:37 PM
RE: [question] Calling an external DLL - by segosa on 06-25-2006 at 04:54 PM
RE: [question] Calling an external DLL - by deAd on 06-25-2006 at 05:27 PM
RE: [question] Calling an external DLL - by BlackSun1102 on 06-25-2006 at 06:21 PM
RE: [question] Calling an external DLL - by Patchou on 06-25-2006 at 09:41 PM
RE: [question] Calling an external DLL - by deAd on 06-25-2006 at 10:23 PM
RE: [question] Calling an external DLL - by BlackSun1102 on 06-26-2006 at 03:26 PM
RE: [question] Calling an external DLL - by deAd on 06-26-2006 at 08:58 PM
RE: [question] Calling an external DLL - by BlackSun1102 on 06-27-2006 at 12:07 PM
RE: [question] Calling an external DLL - by deAd on 06-27-2006 at 01:34 PM
RE: [question] Calling an external DLL - by BlackSun1102 on 06-27-2006 at 04:58 PM
RE: [question] Calling an external DLL - by Griffo on 06-27-2006 at 07:10 PM
RE: [question] Calling an external DLL - by mathieumg on 06-27-2006 at 09:22 PM
RE: [question] Calling an external DLL - by cloudhunter on 06-28-2006 at 01:18 AM
RE: [question] Calling an external DLL - by Griffo on 06-28-2006 at 07:50 AM
RE: [question] Calling an external DLL - by Griffo on 06-28-2006 at 10:52 PM
RE: [question] Calling an external DLL - by Themuzz on 06-29-2006 at 07:52 AM
RE: [question] Calling an external DLL - by Griffo on 06-29-2006 at 08:55 AM
RE: [question] Calling an external DLL - by craigosaurous on 08-23-2006 at 07:42 AM


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