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

ProjectGuid

2G
Hi,

How is ProjectGuid generated? Or is it just some random generation.

Thanks.

Nov 16 '05 #1
4 4801
> How is ProjectGuid generated? Or is it just some random generation.

If it wouldn't be generated randomly it wouldn't be a GUID.

--
cody

[Freeware, Games and Humor]
www.deutronium.de.vu || www.deutronium.tk
Nov 16 '05 #2
2G,

It is most likely generated through the CoCreateGuid function. When you
create a new Guid structure, this is ultimately called to generate a new
GUID.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"2G" <2G@pandora.be> wrote in message
news:e3**************@TK2MSFTNGP12.phx.gbl...
Hi,

How is ProjectGuid generated? Or is it just some random generation.

Thanks.

Nov 16 '05 #3
cody wrote:
How is ProjectGuid generated? Or is it just some random generation.

If it wouldn't be generated randomly it wouldn't be a GUID.


It's more the other way round: if it were randomly generated it would
not be a GUID. AFAIK CoCreateGuid() takes into account
machine-"specific" data and time.
However, MSDN says:

"To a very high degree of certainty, this function returns a unique
value – no other invocation, on the same or any other system (networked
or not), should return the same value."

[http://msdn.microsoft.com/library/en..._a2c_05r8.asp]

--
Konrad -
http://madrat.net/
Nov 16 '05 #4
> >>How is ProjectGuid generated? Or is it just some random generation.


If it wouldn't be generated randomly it wouldn't be a GUID.


It's more the other way round: if it were randomly generated it would
not be a GUID. AFAIK CoCreateGuid() takes into account
machine-"specific" data and time.
However, MSDN says:

"To a very high degree of certainty, this function returns a unique
value – no other invocation, on the same or any other system (networked
or not), should return the same value."

Sure, this way it is guaranteed to be (almost) unique.

--
cody

[Freeware, Games and Humor]
www.deutronium.de.vu || www.deutronium.tk
Nov 16 '05 #5

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

Similar topics

4
by: Evgeny Zoldin | last post by:
Hi, ALL I've developed some prjoect ( VB.NET ) , let Project1, and created for that Setup project, let Setup1. Installed it on a clear mashine - PC1. Then I decided to develop that futher as...
9
by: Invalidlastname | last post by:
Hi, We developed some assemblies which use EnterpriseServices queued components. In order to use EnterpriseServices, these assemblies need to be installed into GAC. I used the pre-build and...
138
by: Ian Boyd | last post by:
i've been thrown into a pit with DB2 and have to start writing things such as tables, indexes, stored procedures, triggers, etc. The online reference is only so helpful. The two pdf manuals are...
9
by: Anubhav Jain | last post by:
Hi, I am having few .net source files(.cs or .vb) and I want to dynamically generate the corresponding .net project file(.csproj or .vbproj) for them without using visual studio.So that I could...
10
by: WT | last post by:
Hello, I have been publishing my web site many times to the remote where resides my final web site. Everything was ok, but to-day, without any configuration change, vs doesn't copy final files...
0
by: Henning Krause [MVP - Exchange] | last post by:
Hello, Environment: Visual Studio 2005 SP1, Web Deployment Projects installed I hava Web Application project (updated from Visual Studio 2003) and a Web Deployment for that web application....
7
by: bonk | last post by:
I have a c# project as part of a larger VS 2005 solution that always gets build optimized and I therefore can not evaluate any values while debugging through the code ("Cannot evaluate expression...
2
by: Coaster | last post by:
I'm reading a csproj file trying to extract info via xpath and this first one works fine xmlNode = xmlDoc.SelectSingleNode("/def:Project/def:PropertyGroup/def:OutputType/text()",nsMgr); ...
5
by: =?Utf-8?B?c2lwcHl1Y29ubg==?= | last post by:
Hi I have a solution with 50 projects. They are all compiled in DEBUG mode and the output path has been modified to a custom directory I now want to build RELEASE mode and the Output Path...
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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,...

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.