Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Interop / March 2007

Tip: Looking for answers? Try searching our database.

c# class registered as com class, default register value

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Markus - 30 Mar 2007 15:04 GMT
When you register a c# class as  COM object with the Attribute
ComVisible(true), Visual Studio, or in our case the installer program handles
all the registry entries.
One entry made be the installer is the default value underneath the Class
GUID.
Like "HKEY_CLASSES_ROOT\CLSID\{GUID of the class}\Default"
This value is set to "namespace.classname" of the registered c# class.

My question is, can i change this value of this register item by aplying a
attribut to the c# class (in the source code) or is there any other method to
tell the setup program the wanted value for this register item.

Thanks, Markuks
Mattias Sjögren - 30 Mar 2007 23:56 GMT
>My question is, can i change this value of this register item by aplying a
>attribut to the c# class (in the source code)

Yes, the ProgIdAttribute.

Mattias

Signature

Mattias Sjögren [C# MVP]  mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.

Markus - 31 Mar 2007 13:28 GMT
Thanks a lot!

> >My question is, can i change this value of this register item by aplying a
> >attribut to the c# class (in the source code)
>
> Yes, the ProgIdAttribute.
>
> Mattias

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.