[question] Calling an external DLL - Printable Version -Shoutbox (https://shoutbox.menthix.net) +-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58) +--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4) +---- Forum: Scripting (/forumdisplay.php?fid=39) +----- Thread: [question] Calling an external DLL (/showthread.php?tid=61350) [question] Calling an external DLL by deAd on 06-25-2006 at 04:37 PM
How do you call an external dll? I'm really confused. I'm using VB.NET to make the dll, and I'm registering it in the DotNetFiles section of the ScriptInfo.xml. However, each time I've tried to call a function from it, I get "Error: unknown." RE: [question] Calling an external DLL by segosa on 06-25-2006 at 04:54 PM
Interop.Call is for win32 dlls, not .NET ones. RE: [question] Calling an external DLL by deAd on 06-25-2006 at 05:27 PM
Ah, I see. I'll try that soon. RE: [question] Calling an external DLL by BlackSun1102 on 06-25-2006 at 06:21 PM
Hi, RE: [question] Calling an external DLL by Patchou on 06-25-2006 at 09:41 PM JScript doesn't support .net objects natively so you have to use COM interop to access them. As long as you have the option checked in your project, you shouldn't see any difference at all . To instantiate your .NET object, just use new ActiveXObject(). RE: [question] Calling an external DLL by deAd on 06-25-2006 at 10:23 PM What option? "Make assembly COM-Visible" ? And then we put it in <DotNetFiles> ? Also, how do I call it in ActiveXObject? Just ActiveXObject("MyDLL") ... or do I need something like ActiveXObject("MyDLL.Something-Else-Goes-Here") ? RE: [question] Calling an external DLL by BlackSun1102 on 06-26-2006 at 03:26 PM
Hi, RE: [question] Calling an external DLL by deAd on 06-26-2006 at 08:58 PM I'm still not catching this. BlackSun, if you got it, can you say something? RE: [question] Calling an external DLL by BlackSun1102 on 06-27-2006 at 12:07 PM
Hi, RE: [question] Calling an external DLL by deAd on 06-27-2006 at 01:34 PM Well, I can set it as com-visible in the Assembly Information...is that it? Then just put it in DotNetFiles and use Interop.Call? RE: [question] Calling an external DLL by BlackSun1102 on 06-27-2006 at 04:58 PM
Hi, quote: ComVisible is one of this arributes, here you can find a list of all attributes, with decriptions and examples. Regards Chris RE: [question] Calling an external DLL by Griffo on 06-27-2006 at 07:10 PM
I'm having trouble with a DLL call in my script too, however mine was made in VB6. code: ...and my script code is: code: However, I keep getting this error: code: Any ideas what I am doing wrong? Thanks EDIT: I've tried Interop.Call2 as well, but no luck! RE: [question] Calling an external DLL by mathieumg on 06-27-2006 at 09:22 PM Was your dll registered with winsvr32? RE: [question] Calling an external DLL by cloudhunter on 06-28-2006 at 01:18 AM
Maybe try this? code: As far as I know, doesnt it need the ()? Cloudy RE: [question] Calling an external DLL by Griffo on 06-28-2006 at 07:50 AM
cloudhunter: I have tried adding the "()" at th end, still no luck! RE: [question] Calling an external DLL by Griffo on 06-28-2006 at 10:52 PM Anyone had any luck with DLL's yet? Still no joy with mine! RE: [question] Calling an external DLL by Themuzz on 06-29-2006 at 07:52 AM
try: RE: [question] Calling an external DLL by Griffo on 06-29-2006 at 08:55 AM
Thanks for the reply! code: RE: [question] Calling an external DLL by craigosaurous on 08-23-2006 at 07:42 AM
Had the same problem with a dll I was using, but managed to get it working by looking the the function names inside the DLL. |