473,320 Members | 1,872 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

COM and registration question

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

Nov 17 '05 #1
2 1793
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]
- mv*@spam.guard.caspershouse.com

<ol******@yahoo.co.uk> wrote in message
news:11**********************@g47g2000cwa.googlegr oups.com...
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

Nov 17 '05 #2


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

Nov 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: - Bob - | last post by:
Question: Is there any way to pry a domain loose that is still registered for a couple of years if you know that the owner listed in the registration is deceased, the company no longer exists, and...
0
by: Marcel - IDUG Europe 2005 | last post by:
Dear DB2 user, My name is Marcel Lévy and I'm a member of the IDUG 2005 Europe Conference Planning Committee. ********************************************************************* Mark your...
0
by: Marcel - IDUG Europe 2005 | last post by:
Hi DB2 users, ========================================================================================= We just created a blog dedicated to our upcoming IDUG 2005 Europe Conference (24-28...
1
by: Ashok K Kumar | last post by:
Hi, I have a ATL Attributed DLL which exposes a COM Component. My requirement is, whenever, the DLL is registered, I also would like to add some entries to the HKLM/Softwares/CompanyName........
2
by: news | last post by:
I just upgraded to PHP 4.4.2 on my Slackware 10.2 system. And Apache/mySQL/PHP all work great through a browser. No errors. But when I try to run a PHP script through the command line, which I...
26
by: T | last post by:
We all know that there are many softwares that require some license key or registration key to enable them. How does one implement something like this in python?
1
by: delusion7 | last post by:
Trying to create a table and insert records from a webform and I keep getting this message: "Successfully created the registration table. Unable to execute the query. Error code...
5
by: JT | last post by:
Hi, I would like opinions on a shareware issue. If shareware uses an online database to hold registration codes, which get copied locally and therefore only needs to check online if the...
4
by: Ananthu | last post by:
Hi, I have to ask one question because i am new in developing project using ASP.NETCurrently I am doing project in ASP.NET. I have designed pages for the client side that is the users who are...
2
by: nirav11 | last post by:
# include <iostream> # include <fstream> # include <iomanip> # include <cstdlib> // needed for exit () using namespace std; int main() { ifstream inFile; ofstream outFile;
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.