For those interested this was a great find: ComRegisterFunctionAttribute
You decorate a method with this attribute (and his little bother for the unregistering) at they will be invoked when your CCW is registered. Jim Murphy Mindreef, LLC http://www.mindreef.com > -----Original Message----- > From: Moderated discussion of advanced .NET topics. [mailto:ADVANCED- > [EMAIL PROTECTED]] On Behalf Of Slavin, Sean > Sent: Tuesday, December 17, 2002 10:26 AM > To: [EMAIL PROTECTED] > Subject: Re: [ADVANCED-DOTNET] MMC Snap-in > > Patrick, > > I passed a couple of emails with Jim at Ironring. If you use the 1.0 > version > of the library, you do not need to do the snapreg. He's automated that in > the library itself. > > 8) > sean > > -----Original Message----- > From: Patrick Steele [mailto:[EMAIL PROTECTED]] > Sent: Monday, December 16, 2002 12:10 PM > To: [EMAIL PROTECTED] > Subject: Re: [ADVANCED-DOTNET] MMC Snap-in > > > Make sure you've registered the 'MMCFormsShim.dll' too. Other than that, > you should be all set. I've switched machines a couple of times recently > and created a small batch file to get my MMC add-in set up and running. > All > it has is: > > regasm my.dll /codebase > snapreg my.dll > > --- > Patrick Steele ([EMAIL PROTECTED]) > Lead Software Architect > Image Process Design > > > > -----Original Message----- > > From: Slavin, Sean [mailto:[EMAIL PROTECTED]] > > Sent: Monday, December 16, 2002 1:17 PM > > To: [EMAIL PROTECTED] > > Subject: Re: [ADVANCED-DOTNET] MMC Snap-in > > > > > > Yuri, > > > > Unless I'm misunderstanding the Ironring library, all I need > > to do is run > > SnapeReg (a utility that comes with the library) and regasm > > on my dll and > > everything should be peachy. I've done that but no luck. Have > > you or anyone > > else tried to use the Ironring stuff? > > > > thx > > > > 8) > > sean > > > > -----Original Message----- > > From: Yuri Misnik [mailto:[EMAIL PROTECTED]] > > Sent: Friday, December 13, 2002 7:31 PM > > To: [EMAIL PROTECTED] > > Subject: Re: [ADVANCED-DOTNET] MMC Snap-in > > > > > > Hi, Sean, > > > > The problem you have has nothing with the about class. When > > you are adding > > the MMC snapin to the console the MMC is trying to create the > > COM component > > according to the GUID specified in the > > HKLM\software\microsoft\MMC\snapins > > registry branch. So, your class, which implements snapin > > interfaces sould be > > registered for COM interop. > > > > Cheers, > > Yuri Misnik > > ATO IT Security Team > > > > > > > > -----Original Message----- > > From: Slavin, Sean [mailto:[EMAIL PROTECTED]] > > Sent: Saturday, 14 December 2002 9:11 AM > > To: [EMAIL PROTECTED] > > Subject: [ADVANCED-DOTNET] MMC Snap-in > > > > I'm trying to use the MMC library from Ironring [1] and am > > running into a > > few problems. I've followed the example in the download but > > when I try to > > add the snap-in to a console, I get the following error: > > Snap-in failed to > > initialize. I can add the sample from the library just fine > > and my code > > looks ok. When I go to try and add my snap in, I can see it > > in the list, > > however it has the default icon and no description even though I have > > specified those. I looked up the error on MSKB and all I came > > up with was > > that there might be an orphaned reg entry somewhere. I've > > spent the last > > hour pouring thru my registry but can't seem to find anything > > out of whack. > > I'm thinking the MMC console can't find the about class but I > > have no idea > > why. Has anyone else run into this problem? > > > > thx > > > > 8) > > sean > > > > [1] http://www.ironringsoftware.com/DesktopDefault.aspx?PageId=19 > > <http://www.ironringsoftware.com/DesktopDefault.aspx?PageId=19> > > > > You can read messages from the Advanced DOTNET archive, > > unsubscribe from > > Advanced DOTNET, or subscribe to other DevelopMentor lists at > > http://discuss.develop.com. > > > > You can read messages from the Advanced DOTNET archive, > > unsubscribe from > > Advanced DOTNET, or subscribe to other DevelopMentor lists at > > http://discuss.develop.com. > > > > You can read messages from the Advanced DOTNET archive, > > unsubscribe from Advanced DOTNET, or > > subscribe to other DevelopMentor lists at http://discuss.develop.com. > > > > > > You can read messages from the Advanced DOTNET archive, unsubscribe from > Advanced DOTNET, or subscribe to other DevelopMentor lists at > http://discuss.develop.com. > > You can read messages from the Advanced DOTNET archive, unsubscribe from > Advanced DOTNET, or > subscribe to other DevelopMentor lists at http://discuss.develop.com. You can read messages from the Advanced DOTNET archive, unsubscribe from Advanced DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.
