What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [Request] Loading DLL

[Request] Loading DLL
Author: Message:
New Member

Posts: 3
36 / Male / –
Joined: May 2007
O.P. [Request] Loading DLL
Hi erveryone,

I'm a new member of this great forum and hope to find nice people :)
Hmm... I can say more about me first, if you would like.
My name is Jérôme, is 20 years old, born and live in Strasbourg (North-East France) and got used to create C/C++ statements for plugin for Messenger Plus! older versions.

I would like to extend the limited functions provided by JScript in adding an external library (.dll) to provide new powerful features.
But when calling Interop.Call(), the debugging window tell me that an unknown error has occured. :(

Here is a part of the C/C++ code in the DLL file :

test.h header file

#ifndef _TEST_H_
#define _TEST_H_

#ifndef _UNICODE
#define _UNICODE

#define DLLEXPORT __declspec(dllexport)

extern "C++" {

// API test
int __stdcall DLLEXPORT CreateTest(TCHAR* szMessage);

} // end extern C++


Now, the C++ source file

#include <windows.h>
#include "test.h"

extern "C++" {

// API test
int __stdcall DLLEXPORT CreateTest(TCHAR* szMessage) {

    MessageBox(NULL, ":)", ":)", 0);
    MessageBox(NULL, szMessage, TEXT(";)"), MB_ICONHAND | MB_OK);
    return 1;

} // end extern C++

And a part of my script file :

Interop.Call("xmsn32.dll", "CreateTest", Message);
Debug.Trace("Test created - " + Message);

I've a copy/paste the dll file into Windows system directory and know that the script has found and load it.
But an unkown error occured when calling Interop.Call()...

Has someone an idea ?
I thank you all in advance for your help


PS : Sorry for by english, but I try to do my best :P

This post was edited on 05-15-2007 at 08:01 PM by S4KurA_^.
05-15-2007 08:00 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
[Request] Loading DLL - by S4KurA_^ on 05-15-2007 at 08:00 PM
RE: [Request] Loading DLL - by S4KurA_^ on 05-15-2007 at 08:25 PM
RE: [Request] Loading DLL - by Patchou on 05-15-2007 at 10:55 PM
RE: [Request] Loading DLL - by S4KurA_^ on 05-16-2007 at 07:41 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