What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » newbie wants to call C++ program

newbie wants to call C++ program
Author: Message:
Hen
Junior Member
**


Posts: 37
Joined: Aug 2007
O.P. RE: RE: newbie wants to call C++ program
quote:
Originally posted by MeEtc
as documented in the scripting documentation.


You mean something like this?
(1)
<OleFiles>   
    <FileName>C++_function.dll</FileName>
</OleFiles>

If this is it, what's the difference, and when to use:
<OleFiles> OR <DotNetFiles> ?

(2) I saw in one of the threads back in 2006, that if I want to register a dll file I need to write in the Initialization:
var sDll = new ActiveXObject('Project_Name.Class_name');

and what do they mean by "initialize"?
i.e ?
function OnEvent_Initialize(MessengerStart)
{
var sDll = new ActiveXObject('Project_Name.Class_name');
}

(3) calling the function:
sDll.function(parameters);

(4)
So what do I need to do? (1) + (3) ? or (1) + (2) + (3) ?

(5)
Now I guess I can handle the serial port with C++, but just for general knowledge, is there a way to handle it also with Js?
(Guess its harder, 'cause Js is more for web development unlike C++...)

Thanks!
quote:
Originally posted by MeEtc
can then call functions in the .dll file by way of the Interop.Call()


...oops didnt notice that one before.

OK, so I can call the function.
(So why back in 2006, they posted you should call a function using " sDll.function(parameters); " ?)
But regarding my previouse reply - I register it by (1) or (2) or someother way?, or if I just save it in the script library as .dll it will recognize it?

Thanks!
08-29-2007 12:32 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
newbie wants to call C++ program - by Hen on 08-28-2007 at 10:08 PM
RE: newbie wants to call C++ program - by MeEtc on 08-28-2007 at 10:13 PM
RE: RE: newbie wants to call C++ program - by Hen on 08-29-2007 at 12:32 PM
RE: newbie wants to call C++ program - by matty on 08-29-2007 at 12:48 PM
RE: RE: newbie wants to call C++ program - by Hen on 08-29-2007 at 12:59 PM
RE: newbie wants to call C++ program - by matty on 08-29-2007 at 01:03 PM
RE: RE: newbie wants to call C++ program - by Hen on 08-29-2007 at 01:05 PM
RE: newbie wants to call C++ program - by matty on 08-29-2007 at 01:06 PM
RE: RE: newbie wants to call C++ program - by Hen on 08-29-2007 at 01:19 PM
RE: newbie wants to call C++ program - by matty on 08-29-2007 at 01:48 PM
RE: RE: newbie wants to call C++ program - by Hen on 08-29-2007 at 01:56 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