Autor Beitrag
matze
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: Sa 31.01.04 12:56 
hallo !!!

ich hab mal ne frage:
wenn ich delphi editor STRG SHIF G drücke bekomm ich eine GUID eingetragen. also z.b. ['{7BFB9FE5-2B79-487B-93EB-3F802FBD4551}']
was kann ich damit denn anfangen, und was ist diese nummer denn genau ??

_________________
In the beginning was the word.
And the word was content-type: text/plain.
CenBells
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 1547

Win 7
Delphi XE5 Pro
BeitragVerfasst: Sa 31.01.04 13:22 
Hallo,

ein GUID ist ein Global Unique Identifier.
Damit werden Interfaces global als einmalig deklariert. Ein GUID wird bei der Überprüfung verwendet, ob zwei interfaces gleich sind.

Gruß
Ken

_________________
Eine Klasse beschreibt die Struktur und das Verhalten einer Menge gleichartiger Objekte.
matze Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: Sa 31.01.04 15:28 
ist das wie mit IP, dass es immer nur eine GUID gibt oder können die auch mehrfach vorkommen ?

_________________
In the beginning was the word.
And the word was content-type: text/plain.
Luckie
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Sa 31.01.04 16:40 
Laut Microsoft ist eine GUID weltweit einzigartig.
BungeeBug
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 901



BeitragVerfasst: Sa 31.01.04 16:51 
was ich für ein Grücht halte ... ausser es lässt sich aus dem Ding die Seriennummer zurückrechnen ...
Luckie
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Sa 31.01.04 17:05 
Was für eine Seriennnummer?

Rechne doch mal aus wie viel Zeichen die GUID bestwht. Und dann ermittele mal wie groß die Wahrscheinlichkeit ist, dass zufällig zwei identische generiert werden.
MSCH
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1448
Erhaltene Danke: 3

W7 64
XE2, SQL, DevExpress, DevArt, Oracle, SQLServer
BeitragVerfasst: Sa 31.01.04 17:07 
ne guid muss eindeutig sein, ansonsten wäre es keine. Ist übrigens quatsch, das sich daraus die Seriennummer zurückrechnen lässt.

Den Code möcht ich sehen. :-) Und wenns so wäre, wen störts?

Übrigens verwendet auch der (MS)SQL-Server solch ähnlich aussehenden GUIDs. Nennt sich dort :uniqueidentifier.
grez
msch

_________________
ist das politisch, wenn ich linksdrehenden Joghurt haben möchte?
matze Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: So 01.02.04 10:31 
also kann ich mit dieser ID meine app (also mal rein theoretisch) eindeutig identifizieren, weil es sonst nirgends auf der welt (rein theoretisch) so eine GUID gibt.... nett

_________________
In the beginning was the word.
And the word was content-type: text/plain.
Motzi
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2931

XP Prof, Vista Business
D6, D2k5-D2k7 je Prof
BeitragVerfasst: So 01.02.04 14:43 
Die GUID wird auf Basis der MAC-Adresse berechnet und diese ist nunmal eindeutig! Außerdem stammt der Algo zur Berechnung einer GUID nicht von Microsoft... die GUID ist eine 128-Bit breite Zahl und wurde zum ersten Mal unter dem Namen Universally Unique Identifier (UUID) von der Open Software Foundation verwendet.

Ein GUID hat eine garantierte Einmaligkeit, auch dann, wenn 10 Millionen Aufrufe pro Sekunde pro Rechner für die nächsten 3240 Jahre erfolgen. (Zitat aus "COM/DCOM/COM+ mit Delphi" von Andreas Kosch)

_________________
gringo pussy cats - eef i see you i will pull your tail out by eets roots!
MSCH
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1448
Erhaltene Danke: 3

W7 64
XE2, SQL, DevExpress, DevArt, Oracle, SQLServer
BeitragVerfasst: So 01.02.04 16:40 
hmmm, und wenn ich keine Netzwerkkarte und ähnliches habe :-)
grez
msch

_________________
ist das politisch, wenn ich linksdrehenden Joghurt haben möchte?
matze Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: Mo 02.02.04 17:28 
also das mit der mac adresse find ich gut, das heisst ja echt, dass die einmalig ist aber:
MSCH hat folgendes geschrieben:
hmmm, und wenn ich keine Netzwerkkarte und ähnliches habe

_________________
In the beginning was the word.
And the word was content-type: text/plain.
MaxiTB
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 679

Win2000, WinXp, Workbench ;-)
D7 Ent, VS2003 Arch.
BeitragVerfasst: Mo 02.02.04 17:33 
::matze

Wenn du keine Netzwerkkarte hast, dann werden Eckdaten von anderen Rechnerkomponenten hergenommen ... ich weiß nicht mehr genau was alles, aber solche Sachen wie wieviele Sektoren auf der Platte usw.

Es wird die weltweite Einmaligkeit aber auch nur garantiert in Verbindung mit einer Netzwerkkarte. Ohne bist immerhin lokal einzigartig und vor allem kannst keine weltweitgültige simulieren - ist ja auch was, oder :wink: ?

_________________
Euer Mäxchen
Wer früher stirbt, ist länger tot.
BungeeBug
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 901



BeitragVerfasst: Mo 02.02.04 17:36 
Wer vergibt eigendlich die MAC Adressräume? Und es gibt ja Geräte bei denen sich die MAC einstellen lässt. Kann ich jetzt z.b: Luckies Programme als meine abgeben nur weil ich seine MAC Adresse kenne?

Irgendwie kommt mir das komisch vor.

Ausserdem hat jedes Gerät ne MAC?
MaxiTB
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 679

Win2000, WinXp, Workbench ;-)
D7 Ent, VS2003 Arch.
BeitragVerfasst: Mo 02.02.04 17:40 
Mehr zum Thema UUID/GUID:

hegel.ittc.ukans.edu...h-uuids-guids-01.txt

Es gibt Netzwerkkarten, da ist die MAC-Adresse in einem Bereich einstellbar; aber diese Bereiche überschneiden sich nicht mit anderen Bereichen. Vergeben wird die MAC von irgendeiner Organisation, welche Bereiche an Herstellerfirmen vergibt ähnlich wie bei den Domains im Internet.

Und wenn man dort lies, wegen keiner Netzwerkkarte, findet man:
Zitat:
If a system does not have a primitive to generate cryptographic
quality random numbers, then in most systems there are usually a
fairly large number of sources of randomness available from which one
can be generated. Such sources are system specific, but often
include:

- the percent of memory in use
- the size of main memory in bytes
- the amount of free main memory in bytes
- the size of the paging or swap file in bytes
- free bytes of paging or swap file
- the total size of user virtual address space in bytes
- the total available user address space bytes
- the size of boot disk drive in bytes
- the free disk space on boot drive in bytes
- the current time
- the amount of time since the system booted
- the individual sizes of files in various system directories
- the creation, last read, and modification times of files in various system directories
- the utilization factors of various system resources (heap, etc.)
- current mouse cursor position
- current caret position
- current number of running processes, threads
- handles or IDs of the desktop window and the active window
- the value of stack pointer of the caller
- the process and thread ID of caller
- various processor architecture specific performance counters (instructions executed, cache misses, TLB misses)

_________________
Euer Mäxchen
Wer früher stirbt, ist länger tot.
MatzeB
Hält's aus hier
Beiträge: 13

Win98, 2000, XP, Linux, Knoppix
Delphi 6.0, C++ 6.0
BeitragVerfasst: Mo 13.02.06 15:40 
Titel: MAC Adressen und eindeutig
Hallo,
kleine Ergänzung zum Thema MAC Adressen: www.delphi-forum.de/viewtopic.php?t=48416
Die sind leider nicht eindeutig, auch wenn es in vielen Foren so steht. Oben genanntes Topic liefert die Erklärung hierfür.
Greetz MatzeB
digi_c
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1905

W98, XP
D7 PE, Lazarus, WinAVR
BeitragVerfasst: Mo 13.02.06 19:49 
Ok das ist was sie ist.

Und benutzt wird die ja bei Interfaces, insbesondere im Zusammenhang mit ActiveX/COM/DCOM um gleichartig aufgebaute Interfaces festzustellen und damit eine Kompatibilität herzustellen? Ist das so richtig?

Siehe auch Suche in Wikipedia GUID