guid

Update project to Framework 3.5

Hi I have a project that was created in a previous version to 3.5. I since then ran the wizard to upgrade it to 3.5. After I did this I built the project but it has an error. The error is that a Guid is trying to access the properties HasValue and Value: if(theGuid.HasValue) { id = theGuid.Value } The errors are 'System.Guid' does...

Windows GUID or Application List

I was wondering if it is possible to retreive from Windows a list of the applications installed INCLUDING their GUID and Upgrade GUID. I am having problems getting my upgrade to work for one of my programs, and need to check these values for the old version of the program. Thanks for the help! ...

Using GUID with SQL Server and NHibernate.

I'm running NHibernate and SQL Server CE I am trying to use GUIDs as my ID column. This is the code I already have: Mapping: <class name="DatabaseType" table="DBMON_DATABASE_TYPE"> <id name="Id" column="DATABASE_TYPE_ID"> <generator class="guid" /> </id> <property name="DispName" /> </class> And this is the cre...

How to Convert Long to Guid and Vice Versa?

Is this even possible? I don't even think it is, but I saw some code that was trying to do it. However, my unit tests showed that it was not working. I did see some similar thoughts: http://stackoverflow.com/questions/401480/converting-guid-to-integer-and-back http://stackoverflow.com/questions/3563830/converting-system-decimal-to-s...

Can Unicode compression in SQL 2008 R2 cause GUIDs to become corrupt?

We recently had some trouble with our production SQL 2008 R2 databases and had to failover to log-shipped warm spares for most of our databases. This morning I found some very odd GUID values scattered throughout our set of databases. For background, we have a main clients database, that holds various information about installed clients,...

GUID Attribute in UserControl

Hi, please explain the following: I could see GUID Attribute is hard coded in many sites as: <Guid("69F023FE-9545-415e-A47D-CA7D2C158AA0")>. Is the value hard coded or generated? If it is generated then how to get the value?? Also, explain me how to get the user control in VB 6.0 after adding the reference of user control in VB 6.0. ...

Binding to a Guid on a DataView

Hello, first post here but I'm a frequent visitor =) I have a WPF application with .NET 4.0 and Visual Studio 2010 which uses DataViews (coming from an SQL Server 2008). I have two tables which looks like this Table1 GUID (Primary Key, UniqueIdentifier) Table2_GUID (UniqueIdentifier) Table2 GUID (Primary Key, UniqueIdentifier) ...

Expected System.String, got System.Guid

I am hoping there is a very simple explanation why I am getting this error. I am using S#arpArcitecture 1.6. on a 64bit Windows 7 install. Line 3 of the following code gives the error: {"Provided id of the wrong type. Expected: System.String, got System.Guid"} System.Exception {NHibernate.TypeMismatchException} 1 public Category G...

Windows 7 NotifyIcon GUID spoof-protection

I am currently working on learning some different aspects of WINAPI, including features introduced in windows 7.. One of those is using a GUID as identifier for a Notification icon. As can be read on the MSDN, the GUID is bound to the executable by path, the first time the notification icon is added. This page in question promises furth...

How can C# Guid make sure a generated guid is unique globally?

Let's say I want to set a guid to be my application's assembly guid. As searched from internet, we can use (new Guid()).Next() to get a new unique value. I cannot figure out how my guid is warranted to be unique against others? Please explain if you know how to. ...

Create a modified own Com Object in the registry

I want to modified the Internet Explorer CLSID element in the registry: (HKEY_CLASSES_ROOT\CLSID{0002DF01-0000-0000-C000-000000000046} ) It is possible to copy this entry and replace the GUID and create a new alias? Where can I defined a new alias? (Later I want to open this Com Object in PowerShell) ...

Delphi 7 tguid compare

Hi, Is any other way to compare 2 TGUID elements, except transform them into strings (the guidtostring function) and after evaluate the expression, in Delphi 7? Best regards, ...

default value of GUID in for a column in mysql

I want a column to default to a GUID, so if I am doing an insert and I don't explicitly set the value, I want it to default to a new GUID value. how can I do this? ...