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!