What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Using C# DLL

Using C# DLL
Author: Message:
CookieRevised
Elite Member
*****

Avatar

Posts: 15519
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: Using C# DLL
Have you registered the DLL first?

Also what Matti said:
quote:
Originally posted by Matti
Interaction with C# DLLs should be done with COM, not with Interop.Call. You need to make your classes and methods "ComVisible" so that they are exposed for COM in the DLL.

Thus, not any .NET DLL can be called though. It needs to be properly prepped to handle COM.

Example tutorial (although the example calling script is VBScript, the exact same things for the DLL apply for when you want to call it from JScript):
http://www.codeproject.com/Articles/79314/How-to-...om-a-VBScript.aspx
Also read the comments in that article, especially "Improovements for your code"




This post was edited on 10-22-2010 at 07:15 AM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
10-21-2010 08:21 AM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Using C# DLL - by barby850717@gmail. on 10-20-2010 at 08:48 PM
RE: Using C# DLL - by Matti on 10-20-2010 at 09:15 PM
RE: Using C# DLL - by barby850717@gmail. on 10-20-2010 at 09:26 PM
RE: Using C# DLL - by CookieRevised on 10-21-2010 at 08:21 AM
RE: Using C# DLL - by barby850717@gmail. on 10-21-2010 at 01:32 PM
RE: Using C# DLL - by matty on 10-21-2010 at 10:27 PM
RE: Using C# DLL - by felipEx on 10-22-2010 at 02:33 AM
RE: RE: Using C# DLL - by CookieRevised on 10-22-2010 at 07:12 AM
RE: RE: RE: Using C# DLL - by felipEx on 10-23-2010 at 05:15 AM
RE: Using C# DLL - by CookieRevised on 10-23-2010 at 08:27 AM
RE: Using C# DLL - by SmokingCookie on 10-28-2010 at 06:02 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