PC Review


Reply
Thread Tools Rate Thread

COM and registration question

 
 
oliderid@yahoo.co.uk
Guest
Posts: n/a
 
      21st Jun 2005
Hi,

I'm new to C# and the windows world (I used to work on Java and *nix
OSes). I'm using visual studio .net 2003.

I'm working on a add-in application to be used under a software. I was
able to settle the correct COM interface. Now I must register the
software in the windows registry.

Their documentation tells something:

"Your application must register itself as implementing the following
ID:
DFCE97AB-25ED-4335-BB00-FE5863F41DED. This desktop add-in ID is noted
in the
RimExtension.idl file. Microsoft Visual Studio creates an .rgs
registration file for
your project, as shown in the desktop sample application. To provide
the appropriate
registration information, you must add the following block to the .rgs
file:
'Implemented Categories'
{
{DFCE97AB-25ED-4335-BB00-FE5863F41DED}
}

"

I know what they means, to register my application as somewhat
connected to their own one. But I fail to see how it could be done.

I tried to find as much as information possible but it seems to be a
too wide topic. Is there anybody out there who could tell me precisly
the different things to do (not in details, but the tools to be used,
manipulations and so on).

Olivier

 
Reply With Quote
 
 
 
 
Nicholas Paldino [.NET/C# MVP]
Guest
Posts: n/a
 
      21st Jun 2005
Olivier,

I'm assuming you are implementing a COM interface on a .NET type. If
this is the case, you can create two static methods (one for registering,
one for unregistering) in your code that take a Type parameter. You can
then adorn these methods with the ComRegisterFunctionAttribute or
ComUnregisterFunctionAttribute attributes.

The code that is in these static methods will be run when your code is
registered and unregistered (through regasm). In these methods, you can
write the registry entries for the implemented category key for the
component in the registry.

Hope this helps.


--
- Nicholas Paldino [.NET/C# MVP]
- (E-Mail Removed)

<(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi,
>
> I'm new to C# and the windows world (I used to work on Java and *nix
> OSes). I'm using visual studio .net 2003.
>
> I'm working on a add-in application to be used under a software. I was
> able to settle the correct COM interface. Now I must register the
> software in the windows registry.
>
> Their documentation tells something:
>
> "Your application must register itself as implementing the following
> ID:
> DFCE97AB-25ED-4335-BB00-FE5863F41DED. This desktop add-in ID is noted
> in the
> RimExtension.idl file. Microsoft Visual Studio creates an .rgs
> registration file for
> your project, as shown in the desktop sample application. To provide
> the appropriate
> registration information, you must add the following block to the .rgs
> file:
> 'Implemented Categories'
> {
> {DFCE97AB-25ED-4335-BB00-FE5863F41DED}
> }
>
> "
>
> I know what they means, to register my application as somewhat
> connected to their own one. But I fail to see how it could be done.
>
> I tried to find as much as information possible but it seems to be a
> too wide topic. Is there anybody out there who could tell me precisly
> the different things to do (not in details, but the tools to be used,
> manipulations and so on).
>
> Olivier
>



 
Reply With Quote
 
oliderid@yahoo.co.uk
Guest
Posts: n/a
 
      22nd Jun 2005


Nicholas Paldino [.NET/C# MVP] wrote:
> Olivier,
>
> I'm assuming you are implementing a COM interface on a .NET type. If
> this is the case, you can create two static methods (one for registering,
> one for unregistering) in your code that take a Type parameter. You can
> then adorn these methods with the ComRegisterFunctionAttribute or
> ComUnregisterFunctionAttribute attributes.
>
> The code that is in these static methods will be run when your code is
> registered and unregistered (through regasm). In these methods, you can
> write the registry entries for the implemented category key for the
> component in the registry.
>
> Hope this helps.
>
>


It helps. Thank you. It took me two days to understand how to implement
a COm interface and modify the COM accordingly. my biggest problem was
to find a good source of information about that particular topic over
the internet. it was like a puzzle but finally I found my way.

Olivier

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
confirmation registration of question Arne Microsoft Access 1 4th Jan 2009 08:11 AM
registration question. =?Utf-8?B?YWFyb24=?= Windows XP General 5 6th Feb 2005 06:40 AM
registration question statec Windows XP General 2 10th Aug 2004 04:22 PM
REGISTRATION QUESTION Raymond Clark Windows XP Security 0 11th Dec 2003 05:58 AM
REGISTRATION QUESTION Raymond Clark Windows XP Security 1 11th Dec 2003 05:04 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:20 PM.