guid

Sequential Guid Generator

自闭症网瘾萝莉.ら 提交于 2019-12-17 04:16:46
问题 Is there any way to get the functionality of the Sql Server 2005+ Sequential Guid generator without inserting records to read it back on round trip or invoking a native win dll call? I saw someone answer with a way of using rpcrt4.dll but I'm not sure if that would be able to work from my hosted environment for production. Edit: Working with @John Boker's answer I attempted to turn it into more of a GuidComb generator instead of being dependent on the last generated Guid other than starting

How to Create Deterministic Guids

喜欢而已 提交于 2019-12-17 03:23:01
问题 In our application we are creating Xml files with an attribute that has a Guid value. This value needed to be consistent between file upgrades. So even if everything else in the file changes, the guid value for the attribute should remain the same. One obvious solution was to create a static dictionary with the filename and the Guids to be used for them. Then whenever we generate the file, we look up the dictionary for the filename and use the corresponding guid. But this is not feasible

Are GUID collisions possible?

ぃ、小莉子 提交于 2019-12-17 02:22:36
问题 I'm working on a database in SQL Server 2000 that uses a GUID for each user that uses the app it's tied to. Somehow, two users ended up with the same GUID. I know that microsoft uses an algorithm to generate a random GUID that has an extremely low chance of causing collisons, but is a collision still possible? 回答1: Basically, no. I think someone went mucking with your database. Depending on the version GUID you're using the value is either unique (for things like version 1 GUIDs), or both

Are GUID collisions possible?

天大地大妈咪最大 提交于 2019-12-17 02:22:00
问题 I'm working on a database in SQL Server 2000 that uses a GUID for each user that uses the app it's tied to. Somehow, two users ended up with the same GUID. I know that microsoft uses an algorithm to generate a random GUID that has an extremely low chance of causing collisons, but is a collision still possible? 回答1: Basically, no. I think someone went mucking with your database. Depending on the version GUID you're using the value is either unique (for things like version 1 GUIDs), or both

How to create a GUID/UUID using iOS

流过昼夜 提交于 2019-12-17 02:03:44
问题 I want to be able to create a GUID/UUID on the iPhone and iPad. The intention is to be able to create keys for distributed data that are all unique. Is there a way to do this with the iOS SDK? 回答1: [[UIDevice currentDevice] uniqueIdentifier] Returns the Unique ID of your iPhone. EDIT: -[UIDevice uniqueIdentifier] is now deprecated and apps are being rejected from the App Store for using it. The method below is now the preferred approach. If you need to create several UUID, just use this

Is there COM exposure for Direct3D 10

夙愿已清 提交于 2019-12-14 03:58:25
问题 Gentlemen and esteemed ladies. I posted this question in the COM forum at Code Project and got a snotty reply so hopefully you will be more helpful. I see that Microsoft has a COM library for Direct3D 9 exposed with GUID 81BDCBCA-64D4-426d-AE8D-AD0147F4275C. Has Microsoft exposed Direct3D 10 on COM and if so, what is the interface GUID? Thanks in advance. 回答1: From the documentation on MSDN, it looks like they've moved from having an IDirect3D9 object with member functions such as IDirect3D9:

How to call a .NET COM method with an array from delphi using PSafeArray?

烈酒焚心 提交于 2019-12-14 03:23:04
问题 I have an .NET (4.0) interface which is implemented with a ServicedComponent COM+ class: interface DotNetIface { void MethodRef(var System.Guid guid); void MethodArray(System.Guid[] guids, params object[] parameters); void MethodCStyle([MarshalAs(UnmanagedType.LPArray, ArraySubType=UnmanagedType.Struct, SizeConst=5)]System.Guid[] guids); } Now I used the Delphi 2007 import wizard to import the type library, and as expected I get the following signatures: procedure MethodRef(var guid : TGuid);

Generating a unique 15 digite Pin code from a 10digit number

只愿长相守 提交于 2019-12-14 02:29:59
问题 I want to create pin codes and serial numbers for scratch papers , I have already generated unique 10 digit numbers , now I want to turn that 10 digit number to a 16 digit number (with check digit in the end) . The thing is that the function that does this should be reversible so by seeing the 16 digit number I can check whether it is valid or not .(if it is not generated by me it should not be valid) . this is how I have generated the 10 digit unique random codes : Guid PinGuid; byte[] Arr;

GUIDs in DLLs (.Net)

≯℡__Kan透↙ 提交于 2019-12-13 13:15:59
问题 I'm not very experienced in this area - so I've got a few questions. Firstly, do all .Net created DLLs have their own GUID? If not, my question is how do I get one and associate it with the DLL. Then the question is, how do I get the GUID of that dll - ie. given a DLL path (c:\some\path\to\a\file.dll) how do I determine its GUID? Also, is there an easy way to go the other way (GUID -> DLL) - I've read a bit about this but a lot of it refers to VB6 DLLs and COM stuff...does this still apply to

Can't load from Oracle when Id is Guid in NHibernate

孤街醉人 提交于 2019-12-13 05:13:35
问题 We're saving an object to NHibernate where the Id is typed Guid. Based on other things we've found we have this as a type char(36). We create an object and save it via NHibernate. This works fine and we see 64599239BB0C1C48B44C36D9F9267830 in the column. When we then try to load using a guid we don't get any results and NHibernate Profiler shows that the WHERE clause is looking for 0x64599239BB0C1C48B44C36D9F9267830 which isn't matching. Obviously we're doing something wrong.. so any ideas