473,403 Members | 2,071 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,403 software developers and data experts.

.Net component and locked classid

Is it possible to lock a specific classid for a .net component directly in
the C# source code? I mean like putting an attribute in the assembly.cs file
or elsewhere... Each time i register my new version of the component with
regasm, i want that the objet always keep the initial classid or the one
that i will assign to...

Thanks
Mario Hebert
Nov 13 '05 #1
1 2655
Mario Hébert wrote:
Is it possible to lock a specific classid for a .net component
directly in the C# source code? I mean like putting an attribute in
the assembly.cs file or elsewhere... Each time i register my new
version of the component with regasm, i want that the objet always
keep the initial classid or the one that i will assign to...


Apply the GuidAttribute to your class.

--
Arild Fines

http://ankhsvn.tigris.org
A Visual Studio .NET Addin for the Subversion version control system.
Nov 13 '05 #2

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

Similar topics

2
by: Tony Heflin | last post by:
I am having a problem determining the source of a problem. I have created a very simple (for right now) windows script component that does not work in an asp page(win2k server btw). I tested with a...
4
by: ac | last post by:
Hi, I have to customize a component (in this case Windows Media Player) so that a circular window is shown upon the player. That is, suppose you have a movie playing (in the ordinary rectangle...
0
by: Chad | last post by:
I have COM component embedded on html page. It has version 1.0.0.1 (by default). I have converted it in cab file. Code of html is something like: <HTML><HEAD></HEAD><BODY><OBJECT...
9
by: Keith Rowe | last post by:
Hello, I am trying to reference a Shockwave Flash Object on a vb code behind page in an ASP.NET project and I receive the following error: Guid should contain 32 digits with 4 dashes...
6
by: TnCoder | last post by:
Hi; I just moved from vb 6.0 to vb.net. I am trying to add MS Calendar control to my toolbox. After the control is added, it is not enabled. Is there dll I have to add? Can anyone who could give...
1
by: Mario Hébert | last post by:
Is it possible to lock a specific classid for a .net component directly in the C# source code? I mean like putting an attribute in the assembly.cs file or elsewhere... Each time i register my new...
0
by: wh | last post by:
The application that I'm about to start working on requires maintaining a list of users currently accessing an asp.net application running on IIS5.0. I essentially need to monitor which xml files...
4
by: Jim Hammond | last post by:
Every time I call a method in a client-side assembly (component), it seems like the component gets instantiated again. More specifically, I have determined that the Init method is getting called...
1
by: Jim Hammond | last post by:
The following code uses a client-side component to capture an image from the camera on the client system. The problem is that the init function (in ClientSideAssembly_Video.dll) is called once...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.