473,388 Members | 1,426 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,388 software developers and data experts.

ATL attributes - Custom registration script

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..... along with the Component registration. By
default, when we create an attributed COM Component, it adds, vi_progid,
progid, coclass, uuid, etc.. This is enough to register the component. But, I
need to add additional registration information like adding a couple of
entries in the HKLM apart from the usual Component registration. How do i do
that?

I tried using registration_script attribute to specify a custom.rgs file
which has the ATL registrar (ATL 3.0 style) registry entries. But the problem
is that, once we mention this attribute, the component registration does not
happen. Does this mean I have to include my component registration also in
the custom.rgs file itself? Can I not use the existing coclass attribute to
do this work? Or am I missing something?

Thanks in advance.

Ashok K Kumar
Nov 17 '05 #1
1 2148
Inline.

--
=====================================
Alexander Nickolov
Microsoft MVP [VC], MCSD
email: ag********@mvps.org
MVP VC FAQ: http://www.mvps.org/vcfaq
=====================================

"Ashok K Kumar" <as***@newsgroup.nospam> wrote in message
news:EE**********************************@microsof t.com...
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..... along with the Component registration.
By
default, when we create an attributed COM Component, it adds, vi_progid,
progid, coclass, uuid, etc.. This is enough to register the component.
But, I
need to add additional registration information like adding a couple of
entries in the HKLM apart from the usual Component registration. How do i
do
that?

I tried using registration_script attribute to specify a custom.rgs file
which has the ATL registrar (ATL 3.0 style) registry entries. But the
problem
is that, once we mention this attribute, the component registration does
not
happen. ... Does this mean I have to include my component registration also in
the custom.rgs file itself?
Yes.
... Can I not use the existing coclass attribute to
do this work?
No. You are overriding it entirely.
... Or am I missing something?
Yes - the coclass registration. Also, it'd make more sense to override the
module registration, not the registration of an object in your server...

Thanks in advance.

Ashok K Kumar

Nov 17 '05 #2

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

Similar topics

3
by: Kunle Odutola | last post by:
I have a database that tracks players for children's sports clubs. I have included representative DDL for this database at the end of this post. A single instance of this database supports...
0
by: Jeff Jorczak | last post by:
I was unable to find information here on how to do this, so I am posting the solution for the benefit of all. If you want to create a custom action in a .NET deployment project to register your...
8
by: nicolas.sanguinetti | last post by:
Hi, I want to add custom attributes to my xhtml documents to use with my DOM scripts. For example, I want to have some tags -say, the <h1>- have an attribute and a . The thing is that I also...
0
by: Scott Chapman | last post by:
The my2pg.pl script creates custom functions that help with the MySQL "set" column type. I can't figure out how to use the functions once I have the database migrated into Postgres. Can someone...
7
by: rein.petersen | last post by:
Hey All, I was wondering if there were a way for a script to access it's parent tag without having to use the document.all.tags method which doesn't necessarily identify it if there are more...
2
by: prabhupr | last post by:
Hi Folks I was reading this article (http://www.dotnetbips.com/articles/displayarticle.aspx?id=32) on "Custom Attribute", written by Bipin. The only thing I did not understand in this article...
0
by: Wayne Smith | last post by:
I've taken the following code from a developers web site which should allow a user to register and receive an email message with a link to activate their account, but when I click the link on my...
3
by: satishknight | last post by:
Hi, Can some one tell me how to change the validation sequence for the code pasted below, actually what I want it when any one enters the wrong login information (already registered users) then it...
9
by: happyse27 | last post by:
Hi All, In perl script(item b below) where we check if html registration form are filled in properly without blank with the necessary fields, how to prompt users that the field are incomplete...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.