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: 15517
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: Using C# DLL
quote:
Originally posted by felipEx
quote:
Originally posted by CookieRevised
quote:
Originally posted by felipEx
quote:
COM classes must have a parameterless Public Sub New() constructor, or the class will not register correctly
Source: Walkthrough: Creating COM Objects with Visual Basic .NET
That only applies for VB.NET (right?).

He is using C#...
It doesn't matter at all if it's C#/VB.NET, COM classes must have a parameterless constructor in order to register correctly. Sorry if I wasn't clear in the first place ;-)
ah yeah, but that's not what I meant. The code you showed for the parameterless constuctor (underlined bit) is VB.NET, not C#...

;)

Also, in the C# code I showed, which is a working code apparently, they don't have that parameterless constructor, yet it does register perfectly according to the article though, so what are they doing differently?

Either way, also according to the code I showed, you best add a few more things to it in order to make it good COM Interop.

This post was edited on 10-23-2010 at 09:33 AM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
10-23-2010 08:27 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