petesouthwest wrote:
> Thought I would start a new topic as this was kinda different to the 
> last question.
> 
> I liked the idea of using a GUID as a key in the registry, so I've 
> been looking at that method.

The parts of the registry that require GUIDs are well documented. 
They're usually the COM-registration regions, or the MS Installer 
settings. If you're not putting your information in any of those places, 
then I'd recommend using something that's a little more readable than a 
GUID.

> Do I generate the GUID on my development machine and use 
> it 'statically' in my code? Something like:
>   MyAppGUID : TGuid = ['{15755161-D506-11D3-8BF9-005004B21322}'] 
> 
> If I generate it dynamically, it seems to change each time.
> 
> I must admit that I thought from what I had read that the GUID would 
> be the same for a particular application each time it was run.

If you got the same value every time, it would hardly be "globally 
unique" anymore, would it?

Maybe you're thinking of Delphi's random-number generator, which 
generates the same sequence of random numbers for a given seed.

-- 
Rob



-----------------------------------------------------
Home page: http://groups.yahoo.com/group/delphi-en/
To unsubscribe: [EMAIL PROTECTED] 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/delphi-en/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to